Skip to content

Move all test/tools.py fixtures to conftest.py file#1114

Merged
datapythonista merged 8 commits intoairspeed-velocity:masterfrom
dorothykiz1:merge_fixtures005
Mar 9, 2022
Merged

Move all test/tools.py fixtures to conftest.py file#1114
datapythonista merged 8 commits intoairspeed-velocity:masterfrom
dorothykiz1:merge_fixtures005

Conversation

@dorothykiz1
Copy link
Contributor

@dorothykiz1 dorothykiz1 commented Mar 8, 2022

xref #1030

@dorothykiz1 dorothykiz1 changed the title Moe fixtures to conftest.py file Move all test/tools.py fixtures to conftest.py file Mar 8, 2022
setup.cfg Outdated
test/test_continuous.py,
test/test_util.py,
test/test_find.py,
test/tools.py,
Copy link
Member

Choose a reason for hiding this comment

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

Why do we need to get tools.py back here? I guess there is a reason, but seems like we're just removing a couple of functions from there, if things were passing, they should still pass now.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I added it as it was complaining about flake8 issues, I remember you had advised me not to mix issues.
Could my approach be wrong or i fix the unused import flake8 issues in the file?

Copy link
Member

Choose a reason for hiding this comment

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

If the file is now passing the flake8 tests in master, and it's failing in this PR, it means you are introducing them.

So, not mixing things is a good idea, and we shouldn't probably fix existing flake8 issues here with the move. But the flake8 errors here are caused by your changes, so it's fine to fix them.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for this,let me fix this

@dorothykiz1
Copy link
Contributor Author

@datapythonista this PR is ready for your review again

@datapythonista
Copy link
Member

Sorry, this has conflicts with your other PR I just merged. Can you resolve them please?

@datapythonista
Copy link
Member

Tests are failing. Looks like you removed the decorator making basic_html a fixture when moving things.

@dorothykiz1
Copy link
Contributor Author

Thanks @datapythonista I have worked on this,you can check again on green

@datapythonista datapythonista merged commit e8fd100 into airspeed-velocity:master Mar 9, 2022
@datapythonista
Copy link
Member

Thanks @dorothykiz1, very nice!

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.

2 participants