-
Notifications
You must be signed in to change notification settings - Fork 688
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5905 from freedomofpress/single-file-message
Use definite article for single file error case; improve functional test output
- Loading branch information
Showing
5 changed files
with
29 additions
and
12 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
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,8 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
from os.path import abspath, dirname, join, realpath | ||
import pytest | ||
import sys | ||
|
||
# The tests directory should be adjacent to the securedrop directory. By adding | ||
# the securedrop directory to sys.path here, all test modules are able to | ||
# directly import modules in the securedrop directory. | ||
sys.path.append(abspath(join(dirname(realpath(__file__)), '..', 'securedrop'))) | ||
|
||
# This ensures we get pytest's more detailed assertion output in helper functions | ||
pytest.register_assert_rewrite('tests.functional.journalist_navigation_steps') | ||
pytest.register_assert_rewrite('tests.functional.source_navigation_steps') |
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