Create pytest-testslide
See original GitHub issueAdd TestSlide support for pytest:
- Create the PyPI package.
- Add integration tests to
Makefile
for building, installing and using it. - Add documentation at
doc/
regarding pytest integration.
StrictMock can be used simply by importing it, just document it.
Patching tools require special pytest integration, which can be done with @pytest.fixture. Naming the fixture testslide
makes sense:
def test_something(testslide):
testslide.mock_callable(...)
but this contrasts with its usage at TestSlide’s DSL and Python’s Unittest, which access them via self.mock_callable(...)
, so this is TBD.
The fixture implementation can be copy / pasta from testslide.TestCase.
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (5 by maintainers)
Top Results From Across the Web
Introduction to py.test - Slides
Testing in Python? easy to write; easy to read; easy to run; memory & CPU are not problems; deployment is not a problem...
Read more >Effective testing with pytest - SlideShare
How we achieve effectivity Using Pytest to its full potential Understanding artifacts: mocks, fixtures. Test phases A test can be divided in 3 ......
Read more >Customizing your pytest test suite (part 1) - Raphael Pierzina
Create a new fixture large_group based on small_group but return a complete list of adventurers and copy test_small_group to a new ...
Read more >Talks and Tutorials — pytest documentation
pytest : recommendations, basic packages for testing in Python and Django, Andreu Vallbona, PyconES 2017 (slides in english, video in spanish).
Read more >How to use PyTest | Python Training | Edureka - YouTube
Getting Started With Pytest Create Your First Test With Pytest Multiple Tests ... SlideShare : https://www. slideshare.net/EdurekaIN #Edureka ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Draft on this branch: https://github.com/facebookincubator/TestSlide/tree/pytest.
test_aggregated_exceptions should cover it. But I think it is still only reporting the first exception that surfaces, and not reporting all of them. I think you can put test_aggregated_exceptions code at a regular TestCase, and run testslide on it to get the reference error. As long as pytest matches that, we’re gold.