Skip to content

Commit

Permalink
fix failing version test
Browse files Browse the repository at this point in the history
  • Loading branch information
rpmcginty committed Mar 1, 2024
1 parent 42372fe commit 8b65371
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/aibs_informatics_core/models/api/test_route.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,17 @@ def test__get_http_request__works(route: ApiRoute, input, expected):

class ApiRequestConfigTests(BaseTest):
def test__build__creates_from_nothing(self):
expected_client_version = VersionStr("0.0.*")
expected_client_version = VersionStr("0.*")
self.set_env_vars((API_SERVICE_LOG_LEVEL_ENV_VAR, None))
config1 = ApiRequestConfig.build()

self.set_env_vars((API_SERVICE_LOG_LEVEL_ENV_VAR, "INFO"))
config2 = ApiRequestConfig.build()

# TODO: This is failing for unknown reasons in github actions
# self.assertEqual(config1.client_version, expected_client_version)
assert config1.client_version == expected_client_version
assert config2.client_version == expected_client_version
self.assertIsNone(config1.service_log_level)
self.assertEqual(config2.client_version, expected_client_version)
self.assertEqual(config2.service_log_level, "INFO")

def test__to_headers__works(self):
Expand Down

0 comments on commit 8b65371

Please sign in to comment.