File tree Expand file tree Collapse file tree 5 files changed +11
-0
lines changed
Expand file tree Collapse file tree 5 files changed +11
-0
lines changed Original file line number Diff line number Diff line change 11[flake8]
22max-line-length =99
3+
4+ [metadata]
5+ license_files = LICENSE.md
Original file line number Diff line number Diff line change @@ -174,6 +174,8 @@ def client():
174174 host = os .environ ["API_HOST" ], api_key = {"key" : os .environ ["API_KEY" ]}
175175 )
176176 api_client = lilt .ApiClient (configuration )
177+ api_client .set_default_header ("x-is-automated-test" , True )
178+ api_client .set_default_header ("x-is-expected-error" , True )
177179 commit = os .environ .get ("GIT_COMMIT_SHA" , "no_version_available" )
178180 api_client .user_agent = f"lilt-python-e2e-tests/{ commit } "
179181 return api_client
Original file line number Diff line number Diff line change @@ -204,6 +204,8 @@ def client():
204204 host = os .environ ["API_HOST" ], api_key = {"key" : os .environ ["API_KEY" ]}
205205 )
206206 api_client = lilt .ApiClient (configuration )
207+ api_client .set_default_header ("x-is-automated-test" , True )
208+ api_client .set_default_header ("x-is-expected-error" , True )
207209 commit = os .environ .get ("GIT_COMMIT_SHA" , "no_version_available" )
208210 api_client .user_agent = f"lilt-python-e2e-tests/{ commit } "
209211 return api_client
Original file line number Diff line number Diff line change @@ -40,6 +40,8 @@ def client():
4040 host = os .environ ["API_HOST" ], api_key = {"key" : os .environ ["API_KEY" ]}
4141 )
4242 api_client = lilt .ApiClient (configuration )
43+ api_client .set_default_header ("x-is-automated-test" , True )
44+ api_client .set_default_header ("x-is-expected-error" , True )
4345 commit = os .environ .get ("GIT_COMMIT_SHA" , "no_version_available" )
4446 api_client .user_agent = f"lilt-python-e2e-tests/{ commit } "
4547 return api_client
Original file line number Diff line number Diff line change @@ -23,6 +23,8 @@ def client():
2323 host = os .environ ["API_HOST" ], api_key = {"key" : os .environ ["API_KEY" ]}
2424 )
2525 api_client = lilt .ApiClient (configuration )
26+ api_client .set_default_header ("x-is-automated-test" , True )
27+ api_client .set_default_header ("x-is-expected-error" , True )
2628 commit = os .environ .get ("GIT_COMMIT_SHA" , "no_version_available" )
2729 api_client .user_agent = f"lilt-python-e2e-tests/{ commit } "
2830 return api_client
You can’t perform that action at this time.
0 commit comments