Skip to content

Commit

Permalink
Rename tests that test test
Browse files Browse the repository at this point in the history
  • Loading branch information
jochenchrist committed Apr 15, 2024
1 parent ebc1c0f commit 5d8e868
Show file tree
Hide file tree
Showing 17 changed files with 12 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion tests/test_examples_kafka.py → tests/test_test_kafka.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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"
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 5d8e868

Please sign in to comment.