Skip to content

Commit

Permalink
Fixing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
aliabbasrizvi committed Jun 12, 2019
1 parent 15a432e commit ebb0ae3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_config_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ def test_set_last_modified(self, _):

def test_fetch_datafile(self, _):
""" Test that fetch_datafile sets config and last_modified based on response. """
project_config_manager = config_manager.PollingConfigManager(sdk_key='some_key')
with mock.patch('optimizely.config_manager.PollingConfigManager.fetch_datafile'):
project_config_manager = config_manager.PollingConfigManager(sdk_key='some_key')
expected_datafile_url = 'https://cdn.optimizely.com/datafiles/some_key.json'
test_headers = {
'Last-Modified': 'New Time'
Expand Down

0 comments on commit ebb0ae3

Please sign in to comment.