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

Reorder tests #162

Merged
merged 3 commits into from Feb 5, 2020
Merged

Conversation

CasperWA
Copy link
Member

@CasperWA CasperWA commented Feb 5, 2020

When adding more tests for PR #153 I found it a bit messy, so I started reordering the tests - this is the result.

I would like to suggest we change the server file deps.py to query_params.py as well, since it's a more descriptive name. It would also reflect the reordering in this PR as well.

Further reorder tests, making the base test class `EndpointTestsMixin`
the base for all endpoint tests, no matter the server being tested.
`TestClient`s are now retrieved through utility functions.
@CasperWA CasperWA added the enhancement New feature or request label Feb 5, 2020
Copy link
Member

@ml-evs ml-evs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No complaints here, seems much tidier and SetClient seems useful.

@CasperWA CasperWA merged commit a371c80 into Materials-Consortia:master Feb 5, 2020
@CasperWA CasperWA deleted the reorder_tests branch February 5, 2020 16:28
This was referenced Feb 5, 2020
CasperWA added a commit that referenced this pull request Feb 6, 2020
Bump to v0.4.0

Changes:

Changes:
- Reorder test files and update testing endpoints setup (#162, @CasperWA)
- Separate the regular and index-meta database server, making sure they're not importing each other (#160, @CasperWA)
- Introduce Starlette/FastAPI HTTP middleware for redirecting URLs ending with a slash to URLs _not_ ending with a slash (#160, @CasperWA)
- Fix validation of `dimension_types` resulting in `response_fields` failing and add tests for `response_fields` (#153, @CasperWA)
- Update entry list property descriptions according to updated OPTiMaDe spec (#153, @CasperWA)
- Validate updated entry list properties and test updated entry list properties (#153, @ml-evs)
- Add OpenAPI schema descriptions for query parameters (#166, @CasperWA)
- Remove custom constrained types `NonnegativeInt` and `conlist` and use instead standard types together with `pydantic`'s `FieldInfo` parameters for schema generation and validation (#166, @shyamd, @CasperWA)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants