diff --git a/tests/test_examples_bigquery.py b/tests/test_test_bigquery.py similarity index 96% rename from tests/test_examples_bigquery.py rename to tests/test_test_bigquery.py index 9d13ac18..d446df98 100644 --- a/tests/test_examples_bigquery.py +++ b/tests/test_test_bigquery.py @@ -19,7 +19,7 @@ os.environ.get("DATACONTRACT_BIGQUERY_ACCOUNT_INFO_JSON_PATH") is None, reason="Requires DATACONTRACT_BIGQUERY_ACCOUNT_INFO_JSON_PATH to be set", ) -def _test_examples_bigquery(): +def _test_test_bigquery(): data_contract = DataContract(data_contract_file=datacontract) run = data_contract.test() diff --git a/tests/test_examples_databricks.py b/tests/test_test_databricks.py similarity index 95% rename from tests/test_examples_databricks.py rename to tests/test_test_databricks.py index 47783cb1..da13541e 100644 --- a/tests/test_examples_databricks.py +++ b/tests/test_test_databricks.py @@ -16,7 +16,7 @@ @pytest.mark.skipif( os.environ.get("DATACONTRACT_DATABRICKS_TOKEN") is None, reason="Requires DATACONTRACT_DATABRICKS_TOKEN to be set" ) -def test_examples_databricks_sql(): +def test_test_databricks_sql(): # os.environ['DATACONTRACT_DATABRICKS_TOKEN'] = "xxx" # os.environ['DATACONTRACT_DATABRICKS_HTTP_PATH'] = "/sql/1.0/warehouses/b053a326fa014fb3" data_contract = DataContract(data_contract_file=datacontract) diff --git a/tests/test_examples_examples_csv.py b/tests/test_test_examples_csv.py similarity index 100% rename from tests/test_examples_examples_csv.py rename to tests/test_test_examples_csv.py diff --git a/tests/test_examples_examples_inline.py b/tests/test_test_examples_inline.py similarity index 100% rename from tests/test_examples_examples_inline.py rename to tests/test_test_examples_inline.py diff --git a/tests/test_examples_examples_json.py b/tests/test_test_examples_json.py similarity index 100% rename from tests/test_examples_examples_json.py rename to tests/test_test_examples_json.py diff --git a/tests/test_examples_examples_missing.py b/tests/test_test_examples_missing.py similarity index 100% rename from tests/test_examples_examples_missing.py rename to tests/test_test_examples_missing.py diff --git a/tests/test_examples_kafka.py b/tests/test_test_kafka.py similarity index 97% rename from tests/test_examples_kafka.py rename to tests/test_test_kafka.py index dc1edfd8..025f6507 100644 --- a/tests/test_examples_kafka.py +++ b/tests/test_test_kafka.py @@ -33,7 +33,7 @@ def remove_container(): @pytest.mark.skipif(sys.platform == 'darwin', reason="Fails on ARM mac, https://github.com/testcontainers/testcontainers-python/issues/450") -def test_examples_kafka(kafka_container: KafkaContainer): +def test_test_kafka(kafka_container: KafkaContainer): send_messages_to_topic("fixtures/kafka/data/messages.json", "inventory-events") data_contract_str = _setup_datacontract() data_contract = DataContract(data_contract_str=data_contract_str) diff --git a/tests/test_examples_kafka_remote.py b/tests/test_test_kafka_remote.py similarity index 94% rename from tests/test_examples_kafka_remote.py rename to tests/test_test_kafka_remote.py index b4ade048..64aa8e90 100644 --- a/tests/test_examples_kafka_remote.py +++ b/tests/test_test_kafka_remote.py @@ -21,7 +21,7 @@ os.environ.get("DATACONTRACT_KAFKA_SASL_USERNAME") is None, reason="Requires DATACONTRACT_KAFKA_SASL_USERNAME to be set", ) -def _test_examples_kafka_json_remote(): +def _test_test_kafka_json_remote(): load_dotenv(override=True) # os.environ['DATACONTRACT_KAFKA_SASL_USERNAME'] = "xxx" # os.environ['DATACONTRACT_KAFKA_SASL_PASSWORD'] = "xxx" @@ -37,7 +37,7 @@ def _test_examples_kafka_json_remote(): os.environ.get("DATACONTRACT_KAFKA_SASL_USERNAME") is None, reason="Requires DATACONTRACT_KAFKA_SASL_USERNAME to be set", ) -def _test_examples_kafka_avro_remote(): +def _test_test_kafka_avro_remote(): load_dotenv(override=True) # os.environ['DATACONTRACT_KAFKA_SASL_USERNAME'] = "xxx" # os.environ['DATACONTRACT_KAFKA_SASL_PASSWORD'] = "xxx" diff --git a/tests/test_examples_local_json.py b/tests/test_test_local_json.py similarity index 100% rename from tests/test_examples_local_json.py rename to tests/test_test_local_json.py diff --git a/tests/test_examples_parquet.py b/tests/test_test_parquet.py similarity index 100% rename from tests/test_examples_parquet.py rename to tests/test_test_parquet.py diff --git a/tests/test_examples_postgres.py b/tests/test_test_postgres.py similarity index 97% rename from tests/test_examples_postgres.py rename to tests/test_test_postgres.py index c13b93f0..87a2c578 100644 --- a/tests/test_examples_postgres.py +++ b/tests/test_test_postgres.py @@ -27,7 +27,7 @@ def remove_container(): os.environ["DATACONTRACT_POSTGRES_PASSWORD"] = postgres.POSTGRES_PASSWORD -def test_examples_postgres(postgres_container): +def test_test_postgres(postgres_container): _init_sql() data_contract_str = _setup_datacontract() diff --git a/tests/test_examples_s3_csv.py b/tests/test_test_s3_csv.py similarity index 96% rename from tests/test_examples_s3_csv.py rename to tests/test_test_s3_csv.py index 19a46895..71b8f58b 100644 --- a/tests/test_examples_s3_csv.py +++ b/tests/test_test_s3_csv.py @@ -23,7 +23,7 @@ def minio_container(): yield minio_container -def test_examples_s3_csv(minio_container, monkeypatch): +def test_test_s3_csv(minio_container, monkeypatch): monkeypatch.setenv("DATACONTRACT_S3_ACCESS_KEY_ID", s3_access_key) monkeypatch.setenv("DATACONTRACT_S3_SECRET_ACCESS_KEY", s3_secret_access_key) data_contract_str = _prepare_s3_files(minio_container) diff --git a/tests/test_examples_s3_json.py b/tests/test_test_s3_json.py similarity index 96% rename from tests/test_examples_s3_json.py rename to tests/test_test_s3_json.py index 61251bbd..e109c255 100644 --- a/tests/test_examples_s3_json.py +++ b/tests/test_test_s3_json.py @@ -20,7 +20,7 @@ def minio_container(): yield minio_container -def test_examples_s3_json(minio_container, monkeypatch): +def test_test_s3_json(minio_container, monkeypatch): monkeypatch.setenv("DATACONTRACT_S3_ACCESS_KEY_ID", "test-access") monkeypatch.setenv("DATACONTRACT_S3_SECRET_ACCESS_KEY", "test-secret") data_contract_str = _prepare_s3_files(minio_container) diff --git a/tests/test_examples_s3_json_complex.py b/tests/test_test_s3_json_complex.py similarity index 97% rename from tests/test_examples_s3_json_complex.py rename to tests/test_test_s3_json_complex.py index c7157d86..ea288f9c 100644 --- a/tests/test_examples_s3_json_complex.py +++ b/tests/test_test_s3_json_complex.py @@ -20,7 +20,7 @@ def minio_container(): yield minio_container -def test_examples_s3_json(minio_container): +def test_test_s3_json(minio_container): os.environ["DATACONTRACT_S3_ACCESS_KEY_ID"] = "test-access" os.environ["DATACONTRACT_S3_SECRET_ACCESS_KEY"] = "test-secret" diff --git a/tests/test_examples_s3_json_multiple_models.py b/tests/test_test_s3_json_multiple_models.py similarity index 97% rename from tests/test_examples_s3_json_multiple_models.py rename to tests/test_test_s3_json_multiple_models.py index c15cc5c3..e378aa7e 100644 --- a/tests/test_examples_s3_json_multiple_models.py +++ b/tests/test_test_s3_json_multiple_models.py @@ -23,7 +23,7 @@ def minio_container(): yield minio_container -def test_examples_s3_json(minio_container): +def test_test_s3_json(minio_container): os.environ["DATACONTRACT_S3_ACCESS_KEY_ID"] = s3_access_key os.environ["DATACONTRACT_S3_SECRET_ACCESS_KEY"] = s3_secret_access_key diff --git a/tests/test_examples_s3_json_remote.py b/tests/test_test_s3_json_remote.py similarity index 96% rename from tests/test_examples_s3_json_remote.py rename to tests/test_test_s3_json_remote.py index 92e943b2..11f1041c 100644 --- a/tests/test_examples_s3_json_remote.py +++ b/tests/test_test_s3_json_remote.py @@ -8,7 +8,7 @@ datacontract = "fixtures/s3-json-remote/datacontract.yaml" -def test_examples_s3_json(): +def test_test_s3_json(): if "AWS_ACCESS_KEY_ID" in os.environ: del os.environ["AWS_ACCESS_KEY_ID"] if "AWS_SECRET_ACCESS_KEY" in os.environ: diff --git a/tests/test_examples_snowflake.py b/tests/test_test_snowflake.py similarity index 95% rename from tests/test_examples_snowflake.py rename to tests/test_test_snowflake.py index 84259dc3..5505c18e 100644 --- a/tests/test_examples_snowflake.py +++ b/tests/test_test_snowflake.py @@ -6,7 +6,7 @@ # @pytest.mark.skipif(os.environ.get("DATACONTRACT_SNOWFLAKE_USERNAME") is None, reason="Requires DATACONTRACT_SNOWFLAKE_USERNAME to be set") -# def test_examples_snowflake(): +# def test_test_snowflake(): # load_dotenv(override=True) # # os.environ['DATACONTRACT_SNOWFLAKE_USERNAME'] = "xxx" # # os.environ['DATACONTRACT_SNOWFLAKE_PASSWORD'] = "xxx"