Skip to content

Commit

Permalink
Fixed test failure in Python 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborschulz committed Dec 27, 2022
1 parent 8f00757 commit 09b7a0e
Showing 1 changed file with 13 additions and 5 deletions.
18 changes: 13 additions & 5 deletions tests/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -1113,11 +1113,19 @@ def test_load_extended_settings(self):
self.assertEqual(True, zappa_cli.stage_config["touch"])
self.assertIn("x86_64", zappa_cli.architecture)

zappa_cli = ZappaCLI()
zappa_cli.api_stage = "arch_arm64"
zappa_cli.load_settings("test_settings.json")
self.assertIn("arm64", zappa_cli.stage_config["architecture"])
self.assertIn("arm64", zappa_cli.architecture)
if sys.version_info.major == 3 and sys.version_info.minor < 8:
with self.assertRaises(ValueError):
zappa_cli = ZappaCLI()
zappa_cli.api_stage = "arch_arm64"
zappa_cli.load_settings("test_settings.json")
self.assertIn("arm64", zappa_cli.stage_config["architecture"])
self.assertIn("arm64", zappa_cli.architecture)
else:
zappa_cli = ZappaCLI()
zappa_cli.api_stage = "arch_arm64"
zappa_cli.load_settings("test_settings.json")
self.assertIn("arm64", zappa_cli.stage_config["architecture"])
self.assertIn("arm64", zappa_cli.architecture)

zappa_cli = ZappaCLI()
zappa_cli.api_stage = "extendofail"
Expand Down

0 comments on commit 09b7a0e

Please sign in to comment.