Skip to content

Commit

Permalink
use full project name
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Caha committed Dec 9, 2023
1 parent fe907a3 commit 93bda81
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 12 deletions.
11 changes: 3 additions & 8 deletions test/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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
Expand Down
6 changes: 2 additions & 4 deletions test/test_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 93bda81

Please sign in to comment.