We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0eff8a commit 9374faaCopy full SHA for 9374faa
.travis.yml
@@ -7,10 +7,13 @@ addons:
7
- python3-pip
8
- python3-maxminddb
9
- python3-yaml
10
+ - python3-pytest
11
+ - python3-coverage
12
language: sh
13
script:
14
- python3 -m venv venv --system-site-packages
15
- . venv/bin/activate
16
- pip install -e .
17
+ - python3-coverage run -m pytest
18
- cd tests
19
- ./test.sh
setup.cfg
@@ -1,3 +1,6 @@
1
+[tool:pytest]
2
+testpaths = tests
3
+
4
[coverage:run]
5
branch = True
6
source =
sonar-project.properties.local
@@ -0,0 +1 @@
+sonar.sources=dsc_datatool
tests/test_main.py
@@ -0,0 +1,6 @@
+import pytest
+import dsc_datatool as app
+def test_main():
+ with pytest.raises(Exception):
+ app.main()
0 commit comments