forked from bbugyi200/funky
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests: add project directory to PATH
- Loading branch information
Showing
4 changed files
with
24 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{"a": "source ~/projects/funky/venv/bin/activate \"$@\"", "SS": "find ./scripts -type f \\( -name \"*.py\" -not -name \"*__.py\" \\) -o -name \"*.sh\" \"$@\"", "C": "echo \"Makefile setup.py setup.cfg tox.ini .travis.yml MANIFEST.in .coveragerc\" \"$@\"", "D": "echo \"README.md CHANGELOG.md CONTRIBUTING.md\" \"$@\"", "0": "cd /home/bryan/projects/funky/ || return 1", "I": "get funky \"$@\"", "LL": "ls -a && task project:Dev.localalias -BLOCKED next \"$@\"", "M": "find . -type f -name \"*__.py\" \"$@\"", "T": "find ./tests -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "p": "d && eval \"$@\"; a", "S": "find ./funky -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "r": "python -m funky \"$@\"", "t": "python -m pytest tests \"$@\"", "d": "deactivate \"$@\""} | ||
{"a": "source ~/projects/funky/venv/bin/activate \"$@\"", "SS": "find ./scripts -type f \\( -name \"*.py\" -not -name \"*__.py\" \\) -o -name \"*.sh\" \"$@\"", "C": "echo \"Makefile setup.py setup.cfg tox.ini .travis.yml MANIFEST.in .coveragerc .codecov.yaml\" \"$@\"", "D": "echo \"README.md CHANGELOG.md CONTRIBUTING.md\" \"$@\"", "0": "cd /home/bryan/projects/funky/ || return 1", "I": "get funky \"$@\"", "LL": "ls -a && task project:Dev.localalias -BLOCKED next \"$@\"", "M": "find . -type f -name \"*__.py\" \"$@\"", "T": "find ./tests -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "p": "d && eval \"$@\"; a", "S": "find ./funky -type f -name \"*.py\" -not -name \"*__.py\" \"$@\"", "r": "python -m funky \"$@\"", "t": "python -m pytest tests \"$@\"", "d": "deactivate \"$@\""} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,13 @@ | ||
#!/usr/bin/env python | ||
|
||
import pytest | ||
import os | ||
import sys | ||
|
||
project_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) | ||
sys.path.insert(0, project_dir) | ||
|
||
import pytest # noqa | ||
|
||
|
||
if __name__ == "__main__": | ||
pytest.main() | ||
sys.exit(pytest.main()) |