Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test(building-comparison): mock get_eubucco_coverage_intersection_area in test_building_comparison.py #734

Closed
matthiasschaub opened this issue Nov 9, 2023 · 1 comment · Fixed by #739

Comments

@matthiasschaub
Copy link
Collaborator

No description provided.

@matthiasschaub
Copy link
Collaborator Author

Something like this is missing:

@pytest.fixture(scope="class")
def mock_get_eubucco_coverage_intersection_area(class_mocker):
    async_mock = asyncmock(return_value=[{"coverage": 100}])
    class_mocker.patch(
        "ohsome_quality_api.indicators.building_completeness.indicator.db_client.get_eubucco_coverage_intersection_area",
        side_effect=async_mock,
    )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant