Skip to content

Commit

Permalink
Fix style + make tests more verbose
Browse files Browse the repository at this point in the history
  • Loading branch information
gdubicki committed Nov 28, 2021
1 parent 7044f24 commit b8c1c96
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
mypy --install-types --non-interactive puppetboard/ test/
- name: Test
run: |
pytest --cov=. --cov-report=xml --flake8 --strict-markers --mypy puppetboard test
pytest --cov=. --cov-report=xml --flake8 --strict-markers --mypy -v puppetboard test
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
with:
Expand Down
7 changes: 4 additions & 3 deletions test/test_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,8 +824,8 @@ def test_fact_value_view(client, mocker,


def test_fact_value_view_complex(client, mocker,
mock_puppetdb_environments,
mock_puppetdb_default_nodes):
mock_puppetdb_environments,
mock_puppetdb_default_nodes):
values = {
'trusted': {
'domain': '',
Expand All @@ -848,7 +848,8 @@ def test_fact_value_view_complex(client, mocker,
mocker.patch.object(app.puppetdb, '_query', side_effect=dbquery.get)

rv = client.get('/fact/trusted/'
+ "{'domain': ''%2C 'certname': 'node-changed'%2C 'hostname': 'node-changed'%2C "
+ "{'domain': ''%2C 'certname': 'node-changed'%2C"
" 'hostname': 'node-changed'%2C "
"'extensions': {}%2C 'authenticated': 'remote'}")
assert rv.status_code == 200

Expand Down

0 comments on commit b8c1c96

Please sign in to comment.