Skip to content

Commit

Permalink
Merge pull request #262 from glensc/test-deps
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc authored Apr 18, 2021
2 parents fb33483 + 45e3453 commit 1863851
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
*.py text=auto diff=python
/.gitattributes export-ignore
/.github/ export-ignore
/tests/ export-ignore
23 changes: 23 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,29 @@ We use GitHub issues to track public bugs. Report a bug by [opening a new issue]
[issues]: https://github.com/Taxel/PlexTraktSync/issues
[opening a new issue]: https://github.com/Taxel/PlexTraktSync/issues/new

## Testing

We use [pytest] for testing.

First, ensure you have dependencies installed:
```
pip3 install -r tests/requirements.txt
```

To run all tests:

```
python3 -m pytest
```

To run specific test:

```
python3 -m pytest tests/test_version.py
```

[pytest]: https://pytest.org/

## Sharing Plex Media Server Database

Sometimes it is useful to share your copy of your Plex Media Server database
Expand Down
2 changes: 2 additions & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
-r ../requirements.txt
pytest

0 comments on commit 1863851

Please sign in to comment.