Closed mcyprian closed 6 years ago
Have a look at https://docs.pytest.org/en/latest/tmpdir.html - maybe using pytest fixtures here would work better?
I was looking in to tmdir fixture and my impression is that is is designed to be used in one particular method/function. I haven't found the way to use it in setup_method where TestFileEnvironment is created. At this moment we have only one test method in each class so it is also an possibility to move env creation to methods and use the fixture.
Thanks.
virtualenv-api is an optional dependency of pyp2rpm. If it is not installed related tests will be skipped. This PR also contains small change in integration tests that prevents blocking of test_output directory. Integration tests can be run in parallel inside multiple virtual environments.