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

need to refactor @pytest.fixture and create @pytest.fixture for config classes #794

Open
pindge opened this issue Jan 23, 2022 · 0 comments
Assignees

Comments

@pindge
Copy link
Contributor

pindge commented Jan 23, 2022

datacube-ows version: master branch
ows_config.py version/link:: test config

Description

I tried to setup unit test for render_legend function https://github.com/opendatacube/datacube-ows/blob/master/datacube_ows/styles/base.py#L386-L408, had a lot of difficulties instantiating class

class StyleDefBase(OWSExtensibleConfigEntry, OWSMetadataConfig):

https://github.com/opendatacube/datacube-ows/blob/master/datacube_ows/styles/base.py#L95

Would be very useful to create dummy @pytest.fixture for multiple config classes that can be plugged into unittests

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

No branches or pull requests

2 participants