diff --git a/make_post_sell/tests/test_functional.py b/make_post_sell/tests/test_functional.py index 5b3817c..63105bb 100644 --- a/make_post_sell/tests/test_functional.py +++ b/make_post_sell/tests/test_functional.py @@ -4235,7 +4235,7 @@ class TestAnalytics(_AuthenticatedBase): ) # Visit the shop page — toolbar should be present - res = self.testapp.get(f"/s/{shop.id}", status=200) + res = self.testapp.get(f"/s/{shop.id}/{shop.slug}", status=200) self.assertIn("sandbox-toolbar", res.text) self.assertIn("sandbox.js", res.text) @@ -4246,7 +4246,7 @@ class TestAnalytics(_AuthenticatedBase): ) # sandbox_mode is off by default - res = self.testapp.get(f"/s/{shop.id}", status=200) + res = self.testapp.get(f"/s/{shop.id}/{shop.slug}", status=200) self.assertNotIn("sandbox-toolbar", res.text) def test_sandbox_mode_doesnt_affect_other_settings(self): @@ -4410,7 +4410,7 @@ class TestAnalytics(_AuthenticatedBase): ) # Without S3 credentials, data-has-bucket should not be present - res = self.testapp.get(f"/s/{shop.id}", status=200) + res = self.testapp.get(f"/s/{shop.id}/{shop.slug}", status=200) self.assertNotIn('data-has-bucket="1"', res.text) # Save S3 credentials @@ -4427,5 +4427,5 @@ class TestAnalytics(_AuthenticatedBase): ) # Now data-has-bucket="1" should be present - res = self.testapp.get(f"/s/{shop.id}", status=200) + res = self.testapp.get(f"/s/{shop.id}/{shop.slug}", status=200) self.assertIn('data-has-bucket="1"', res.text)