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: update tests and params for project export/import #1040

Merged
merged 8 commits into from Mar 19, 2020
Merged

test: update tests and params for project export/import #1040

merged 8 commits into from Mar 19, 2020

Conversation

nejch
Copy link
Member

@nejch nejch commented Mar 8, 2020

This will need to be changed for #1025 but I'd like to have some tests before refactoring Export code for #1037.

@nejch nejch changed the title test: add unit tests for project export/import test: update tests and params for project export/import Mar 19, 2020
@nejch nejch marked this pull request as ready for review March 19, 2020 00:18
@nejch nejch requested a review from max-wittig March 19, 2020 00:19
@nejch
Copy link
Member Author

nejch commented Mar 19, 2020

I updated this PR as I found some missing parameters for imports while adding tests, @max-wittig could you take a look?

Currently the new mocks/tests are a bit inconsistent with the existing approach but I liked that it made the tests very readable (I first saw it here). I can change this back to with HTTMock if it's more consistent, or change the other mocks in this module, but I guess in any case with the switch to httpx this will become kind of irrelevant :P

@max-wittig
Copy link
Member

This does look a lot more readable! Thanks a lot!

This is gonna be a good addition, until we go for httpx!

@max-wittig max-wittig merged commit 4ffaf1d into python-gitlab:master Mar 19, 2020
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 this pull request may close these issues.

None yet

2 participants