Skip to content

Commit

Permalink
add instance tests for geodetic queries
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeijerdfki committed Sep 30, 2024
1 parent 72fc14d commit b7ff4fd
Show file tree
Hide file tree
Showing 2 changed files with 152 additions and 50 deletions.
24 changes: 24 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,27 @@ def project_setup(grpc_channel) -> Generator[Tuple[str, str], None, None]:
fb_helper.deleteProject(
grpc_channel, flatbuffers.Builder(), project_name, project_uuid
)


# NOTE: This fixture depends on working project creation and deletion
# this uses some example coordinates
@pytest.fixture
def epsg4326_project_setup(grpc_channel) -> Generator[str, None, None]:
fb_builder = flatbuffers.Builder()
project_name = "geodeticProject"
project_uuid = fb_helper.createProject(
grpc_channel,
fb_builder,
project_name,
"map",
"EPSG:4326",
altitude=0,
latitude=52.35_81_99,
longitude=8.27_96_79,
)

yield project_uuid

fb_helper.deleteProject(
grpc_channel, flatbuffers.Builder(), project_name, project_uuid
)
Loading

0 comments on commit b7ff4fd

Please sign in to comment.