Skip to content

Commit ee87ad9

Browse files
committed
use username instead of API_USER variable in test
1 parent 80c371c commit ee87ad9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mergin/test/test_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ def test_create_remote_project_from_local(mc):
342342
project_info = mc.project_info_v2(project_info.get("id"))
343343
assert project_info.version == source_mp.version()
344344
assert project_info.name == test_project
345-
assert project_info.workspace.name == API_USER
345+
assert project_info.workspace.name == mc.username()
346346
assert project_info.id == source_mp.project_id()
347347

348348
version = mc.project_version_info(project_info.id, "v1")
@@ -1754,7 +1754,7 @@ def test_rebase_success(mc, extra_connection):
17541754
test_gpkg = os.path.join(project_dir, "test.gpkg")
17551755
test_gpkg_2 = os.path.join(project_dir_2, "test.gpkg")
17561756
test_gpkg_basefile = os.path.join(project_dir, ".mergin", "test.gpkg")
1757-
test_gpkg_conflict = conflicted_copy_file_name(test_gpkg, API_USER, 1)
1757+
test_gpkg_conflict = conflicted_copy_file_name(test_gpkg, mc.username(), 1)
17581758
cleanup(mc, project, [project_dir, project_dir_2])
17591759

17601760
os.makedirs(project_dir)

0 commit comments

Comments
 (0)