Skip to content

example of fixtures - #26

Open
joaomcteixeira wants to merge 1 commit into
JoaoRodrigues:refactor_v1from
joaomcteixeira:fixture_example
Open

joaomcteixeira wants to merge 1 commit into
JoaoRodrigues:refactor_v1from
joaomcteixeira:fixture_example

Conversation

@joaomcteixeira

Copy link
Copy Markdown
Collaborator

Without going too deep into the matter, I just want to provide an example of fixtures so that you can separate the assert statements in different test functions.

You can see that I transferred the file paths variables to the module level inside the __init__.py i found this a better practice because you can use them test-wide and this also provides a much easier implementation of the fixtures.

I have not cleaned the pre-commit hook messages. But tests pass. Is just an example for you to consider.

I am also not so proficient with fixtures maybe a more experienced developer with pytest can provide a better solution, though I find this one very simple.

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.

1 participant