Skip to content

Commit

Permalink
fixed slow finds, added progressbar
Browse files Browse the repository at this point in the history
  • Loading branch information
joelb123 committed Sep 30, 2020
1 parent c4275df commit 560e794
Show file tree
Hide file tree
Showing 6 changed files with 170 additions and 125 deletions.
6 changes: 4 additions & 2 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,16 @@ five methods useful for adding to the test data stored in the repository:
can be saved at a particular scope at cleanup with an optional exclusion
filter pattern (e.g., for excluding log files). Note that files in directories
that begin with ``test_`` or end with ``_test`` could be confused with
scope directories and cannnot be saved.
scope directories and cannnot be saved. If ``progressbar`` is set to "True",
then the progress of file copying will be shown, which is helpful in some long-running
pytest jobs, e.g. on Travis.
- The ``paths_from_scope`` returns a list of all paths to files from a specified scope.


Prerequisites
-------------
Python 3.6 or greater is required.
This package is tested under Linux and MacOS using Python 3.7.
This package is tested under Linux and MacOS using Python 3.8.

Installation for Users
----------------------
Expand Down
2 changes: 1 addition & 1 deletion noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def install_with_constraints(session, *args, **kwargs):
@nox.session(python=["3.8"])
def tests(session):
"""Run tests with pytest and pytest-cov."""
args = session.posargs or ["--cov=pytest_datadir_mgr"]
args = session.posargs or []
session.run("poetry", "install", "--no-dev", external=True)
install_with_constraints(session, "coverage[toml]", "pytest", "pytest-cov")
session.run("pytest", *args)
Expand Down

0 comments on commit 560e794

Please sign in to comment.