From 93bda813cdaf1a35602a2bbf99b64088e7aa81ba Mon Sep 17 00:00:00 2001 From: Jan Caha Date: Sat, 9 Dec 2023 13:38:35 +0100 Subject: [PATCH] use full project name --- test/conftest.py | 11 +++-------- test/test_basic.py | 6 ++---- 2 files changed, 5 insertions(+), 12 deletions(-) diff --git a/test/conftest.py b/test/conftest.py index f94eda3..45bd5d1 100644 --- a/test/conftest.py +++ b/test/conftest.py @@ -110,10 +110,8 @@ def init_sync_from_geopackage(mc, project_name, source_gpkg_path, ignored_tables ) # prepare a new Mergin Maps project - mc.create_project( - project_name, - namespace=WORKSPACE, - ) + mc.create_project(full_project_name) + mc.download_project( full_project_name, project_dir, @@ -261,10 +259,7 @@ def init_sync_from_db(mc: MerginClient, project_name: str, path_sql_file: str, i cur.execute(base_table_dump) # prepare a new Mergin Maps project - mc.create_project( - project_name, - namespace=WORKSPACE, - ) + mc.create_project(full_project_name) # prepare dbsync config # patch config to fit testing purposes diff --git a/test/test_basic.py b/test/test_basic.py index b853cf9..64220a3 100644 --- a/test/test_basic.py +++ b/test/test_basic.py @@ -659,10 +659,8 @@ def test_recreated_project_ids( # delete remote project mc.delete_project_now(full_project_name) # recreate project with the same name - mc.create_project( - project_name, - namespace=WORKSPACE, - ) + mc.create_project(full_project_name) + # comparing project IDs after recreating it with the same name mp = _get_mergin_project(project_dir) local_project_id = _get_project_id(mp)