Review
Wow. In this chapter, we created a plugin and left it inches away from being able to push it to PyPI. We looked at how to move from hook functions in a conftest.py file to an installable and distributable packaged pytest plugin.
In addition, we
-
used a conftest.py and simple test code to manually develop hook functions for our plugin;
-
moved conftest.py code into a new directory and pytest_skip_slow.py;
-
moved test code into an examples directory;
-
used flit init to create a pyproject.toml file, then modified the file for the special needs of pytest plugins;
-
tried building with flit build and manually testing with built wheel;
-
developed test code that utilized pytester and an example test file; and
-
looked at different ways to distribute a ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access