Skip to content

Commit

Permalink
Rename file instead of re-writing
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Aug 12, 2024
1 parent f373c1b commit ff985c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ldclient/testing/test_file_data_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,8 @@ def make_temp_file(content):
return path

def replace_file(path, content):
with open(path, 'w') as f:
f.write(content)
temp_path = make_temp_file(content)
os.rename(temp_path, path)

def test_does_not_load_data_prior_to_start():
path = make_temp_file('{"flagValues":{"key":"value"}}')
Expand Down

0 comments on commit ff985c3

Please sign in to comment.