File tree Expand file tree Collapse file tree 3 files changed +12
-4
lines changed
Expand file tree Collapse file tree 3 files changed +12
-4
lines changed Original file line number Diff line number Diff line change @@ -14,10 +14,7 @@ install:
1414 - " pip install mypy"
1515script :
1616 - export PYTHONPATH=./src:$PYTHONPATH
17- - coverage erase
18- - make test
19- - mv .coverage .coverage.1
20- - coverage combine
17+ - make test_coverage
2118 - make typecheck
2219before_install :
2320 - sudo apt-get update -qq
Original file line number Diff line number Diff line change @@ -5,6 +5,15 @@ SOURCE= $(SRCDIR)/pyff
55test :
66 PYTHONPATH=$(SRCDIR ) pytest
77
8+ quick_test :
9+ PYFF_SKIP_SLOW_TESTS=1 PYTHONPATH=$(SRCDIR ) pytest
10+
11+ test_coverage :
12+ coverage erase
13+ PYTHONPATH=$(SRCDIR ) pytest --cov=src/pyff
14+ mv .coverage .coverage.1
15+ coverage combine
16+
817reformat :
918 isort --line-width 120 --atomic --project eduid_scimapi --recursive $(SOURCE )
1019 black --line-length 120 --target-version py37 --skip-string-normalization $(SOURCE )
Original file line number Diff line number Diff line change 33import unittest
44from datetime import datetime , timezone
55
6+ import pytest
67import requests
78from mako .lookup import TemplateLookup
89from wsgi_intercept .interceptor import RequestsInterceptor , UrllibInterceptor
@@ -96,6 +97,7 @@ def test_webfinger_rel_dj(self):
9697 assert link ['rel' ] not in 'urn:oasis:names:tc:SAML:2.0:metadata'
9798 assert 'href' in link
9899
100+ @pytest .mark .skipif (os .environ .get ('PYFF_SKIP_SLOW_TESTS' ) is not None , reason = 'Slow tests skipped' )
99101 def test_load_and_query (self ):
100102 with RequestsInterceptor (self .app , host = '127.0.0.1' , port = 80 ) as url :
101103 r = requests .post ("{}/api/call/update" .format (url ))
You can’t perform that action at this time.
0 commit comments