Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
[WIP]Make cloud providers dynamic #15537
base: devel
Are you sure you want to change the base?
[WIP]Make cloud providers dynamic #15537
Changes from 95 commits
baed221
3d49df9
1ab43fd
23c05f9
33cf169
40fee4a
3ec485b
d530288
16576ce
f7a775c
c745b8e
3b42a43
a56b3f3
4c72dbd
8b0020e
bfca360
d9152c6
af72d22
f96aaa6
aee7e2d
e148236
0be715e
61f46e9
79fd42f
6b9ab0d
4d1319a
bd29750
1c74ab2
cb73d5b
f6e2205
5059fff
80f0aa0
0e04fa8
866e9c9
37bc2c1
5426730
c48d416
15a216d
b622935
1eb787d
711db39
309bd41
77ab9d8
b7d26ee
a08f0a8
a0ccc50
9ab03a7
386c2b1
05212c9
a262a51
cbc68c9
a8f2ab0
b4eee7a
2a86100
8e1a626
81bfd51
dab27f8
24a9015
f287a23
254c197
a64f122
f57b698
cd1ba87
31077d8
ca4eb22
cc57c4e
4b300b5
83e4924
25a61f4
c4da8ef
96a9180
19fd764
d7e9356
428da54
7509265
6b91f8a
ae0a858
4b78b87
9deade7
b55c9f8
55b799b
ce42cd4
8141f9f
6a98d88
120b003
036f771
e602c0b
803ac0e
f67d9f4
c7ba12b
1da92e2
2a5875e
33f47fc
f49886b
fc46d3e
ed9158f
c669b39
7bac75e
30cd6ea
f6b063f
6742856
2f4a4f5
6d70934
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how does this work?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The tests shouldn't have any complex logic, the fewer checks the better. The checks for prerequisite expectations can be assertions:
But that's about it. Otherwise, you'll end up with the need to test logic in your tests, which is not something common.
Fixtures are mostly used as an Arrange part of AAA: https://jamescooke.info/arrange-act-assert-pattern-for-python-developers.html / https://jamescooke.info/aaa-part-2-extracting-arrange-code-to-make-fixtures.html / https://docs.pytest.org/en/stable/explanation/anatomy.html.
Then, the tests can rely on the fixture to set everything up correctly. If some expectation isn't met, it'll still fail in the test run, we don't need to add a lot of nested checks for those things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to use “fixture” in fixture names. It's common to use the produced thing name, as that's what's injected into the tests. Additionally, fixtures should have docstrings for
pytest --collect-only --fixtures
.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looking into the test failures, it seems to me that my suspicion was likely right and this might need to be moved away from import-time invocation. And I'd try converting this to use
pytest-subtests
.