Skip to content

Commit

Permalink
fix: update response mock for etag test (#277)
Browse files Browse the repository at this point in the history
  • Loading branch information
yjabri authored Oct 20, 2023
1 parent 7a3b6d3 commit 32d2f73
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions tests/unit_tests/api/test_feature.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from datetime import date

import pytest
import responses
from pytest import mark, param

Expand Down Expand Up @@ -89,15 +86,9 @@ def test_get_feature_toggle_failed_etag():
assert not etag


@pytest.mark.skipif(
date.today() < date(2023, 10, 1),
reason="This is currently breaking due to a dependency or the test setup. Skipping this allows us to run tests in CI without this popping up as an error all the time.",
)
@responses.activate
def test_get_feature_toggle_etag_present():
responses.add(
responses.GET, PROJECT_URL, json={}, status=304, headers={"etag": ETAG_VALUE}
)
responses.add(responses.GET, PROJECT_URL, status=304, headers={"etag": ETAG_VALUE})

(result, etag) = get_feature_toggles(
URL,
Expand Down

0 comments on commit 32d2f73

Please sign in to comment.