Skip to content

Commit

Permalink
Black
Browse files Browse the repository at this point in the history
  • Loading branch information
MarcelGeo committed Sep 5, 2024
1 parent d316615 commit fb9205b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mergin/test/test_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2342,11 +2342,11 @@ def test_project_metadata(mc):
os.makedirs(os.path.join(project_dir, ".mergin"), exist_ok=True)
metadata_file = os.path.join(project_dir, "old_metadata.json")
# rewrite metadata nemespace to prevent failing tests with other user than test_plugin
with open(metadata_file, 'r') as f:
with open(metadata_file, "r") as f:
metadata = json.load(f)
metadata['name'] = f"{API_USER}/{test_project}"
metadata["name"] = f"{API_USER}/{test_project}"
project_metadata_file = os.path.join(project_dir, ".mergin", "mergin.json")
with open(project_metadata_file, 'w') as f:
with open(project_metadata_file, "w") as f:
json.dump(metadata, f, indent=2)

# verify we have correct metadata
Expand All @@ -2359,10 +2359,10 @@ def test_project_metadata(mc):
# copy metadata in new format
metadata_file = os.path.join(project_dir, "new_metadata.json")
# rewrite metadata nemespace to prevent failing tests with other user than test_plugin
with open(metadata_file, 'r') as f:
with open(metadata_file, "r") as f:
metadata = json.load(f)
metadata['namespace'] = API_USER
with open(project_metadata_file, 'w') as f:
metadata["namespace"] = API_USER
with open(project_metadata_file, "w") as f:
json.dump(metadata, f, indent=2)

# verify we have correct metadata
Expand Down

0 comments on commit fb9205b

Please sign in to comment.