diff --git a/setup.cfg b/setup.cfg index 11433ee..91a3c28 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,2 +1,5 @@ [flake8] max-line-length=99 + +[metadata] +license_files = LICENSE.md diff --git a/workflow_tests/test_create_content.py b/workflow_tests/test_create_content.py index 5363ff4..1295589 100644 --- a/workflow_tests/test_create_content.py +++ b/workflow_tests/test_create_content.py @@ -174,6 +174,8 @@ def client(): host=os.environ["API_HOST"], api_key={"key": os.environ["API_KEY"]} ) api_client = lilt.ApiClient(configuration) + api_client.set_default_header("x-is-automated-test", True) + api_client.set_default_header("x-is-expected-error", True) commit = os.environ.get("GIT_COMMIT_SHA", "no_version_available") api_client.user_agent = f"lilt-python-e2e-tests/{commit}" return api_client diff --git a/workflow_tests/test_data_source.py b/workflow_tests/test_data_source.py index bb3d1f3..b2da6a4 100644 --- a/workflow_tests/test_data_source.py +++ b/workflow_tests/test_data_source.py @@ -204,6 +204,8 @@ def client(): host=os.environ["API_HOST"], api_key={"key": os.environ["API_KEY"]} ) api_client = lilt.ApiClient(configuration) + api_client.set_default_header("x-is-automated-test", True) + api_client.set_default_header("x-is-expected-error", True) commit = os.environ.get("GIT_COMMIT_SHA", "no_version_available") api_client.user_agent = f"lilt-python-e2e-tests/{commit}" return api_client diff --git a/workflow_tests/test_instant_translate.py b/workflow_tests/test_instant_translate.py index 855c9cf..34325f7 100644 --- a/workflow_tests/test_instant_translate.py +++ b/workflow_tests/test_instant_translate.py @@ -40,6 +40,8 @@ def client(): host=os.environ["API_HOST"], api_key={"key": os.environ["API_KEY"]} ) api_client = lilt.ApiClient(configuration) + api_client.set_default_header("x-is-automated-test", True) + api_client.set_default_header("x-is-expected-error", True) commit = os.environ.get("GIT_COMMIT_SHA", "no_version_available") api_client.user_agent = f"lilt-python-e2e-tests/{commit}" return api_client diff --git a/workflow_tests/test_verified_translate.py b/workflow_tests/test_verified_translate.py index 1755fc5..28192af 100644 --- a/workflow_tests/test_verified_translate.py +++ b/workflow_tests/test_verified_translate.py @@ -23,6 +23,8 @@ def client(): host=os.environ["API_HOST"], api_key={"key": os.environ["API_KEY"]} ) api_client = lilt.ApiClient(configuration) + api_client.set_default_header("x-is-automated-test", True) + api_client.set_default_header("x-is-expected-error", True) commit = os.environ.get("GIT_COMMIT_SHA", "no_version_available") api_client.user_agent = f"lilt-python-e2e-tests/{commit}" return api_client