Skip to content
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.

Commit

Permalink
Fix test coverage by disabling redirect in some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leplatrem committed Sep 22, 2020
1 parent 4800273 commit 4f4baaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions tests/config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ kinto.bucket_write_principals =
basicauth:c6c27f0c7297ba7d4abd2a70c8a2cb88a06a3bb793817ef2c85fe8a709b08022

kinto.changes.resources = /buckets/blocklists
# Since redirect disabled.
kinto.changes.since_max_age_days = -1
4 changes: 2 additions & 2 deletions tests/test_changes.py
Original file line number Diff line number Diff line change
Expand Up @@ -189,8 +189,8 @@ class OldSinceRedirectTest(BaseWebTest, unittest.TestCase):
@classmethod
def get_app_settings(cls, extras=None):
settings = super().get_app_settings(extras)
settings["changes.since_max_age_days"] = "2"
settings["changes.http_host"] = "cdn-host"
settings["kinto.changes.since_max_age_days"] = "2"
settings["kinto.changes.http_host"] = "cdn-host"
return settings

def test_redirects_and_drops_since_if_too_old(self):
Expand Down

0 comments on commit 4f4baaf

Please sign in to comment.