Skip to content

Commit

Permalink
Add support for missing API versions
Browse files Browse the repository at this point in the history
  • Loading branch information
paulomarg committed Jan 10, 2024
1 parent 5f29593 commit 209a468
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions shopify/api_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ def define_known_versions(cls):
cls.define_version(Release("2022-10"))
cls.define_version(Release("2023-01"))
cls.define_version(Release("2023-04"))
cls.define_version(Release("2023-07"))
cls.define_version(Release("2023-10"))
cls.define_version(Release("2024-01"))

@classmethod
def clear_defined_versions(cls):
Expand Down
2 changes: 1 addition & 1 deletion test/session_token_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ def test_raises_if_aud_doesnt_match_api_key(self):
with self.assertRaises(session_token.SessionTokenError) as cm:
session_token.decode_from_header(self.build_auth_header(), api_key=self.api_key, secret=self.secret)

self.assertEqual("Invalid audience", str(cm.exception))
self.assertEqual("Audience doesn't match", str(cm.exception))

def test_raises_if_issuer_hostname_is_invalid(self):
self.payload["iss"] = "bad_shop_hostname"
Expand Down

0 comments on commit 209a468

Please sign in to comment.