-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ned Batchelder
committed
Aug 4, 2023
1 parent
738c808
commit 9da60b3
Showing
6 changed files
with
16 additions
and
27 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 |
---|---|---|
|
@@ -69,6 +69,9 @@ def fixture_options_baked(cookies_session, request, custom_template): | |
baked result. | ||
""" | ||
with bake_in_temp_dir(cookies_session, extra_context=request.param, template=custom_template): | ||
sh.make('upgrade') | ||
sh.pip('install', '-r', 'requirements/test.txt') | ||
|
||
yield request.param | ||
|
||
|
||
|
@@ -146,11 +149,6 @@ def test_setup_py(options_baked): | |
assert " author_email='[email protected]'," in setup_text | ||
|
||
|
||
def test_upgrade(options_baked): | ||
"""Make sure the upgrade target works""" | ||
run_in_virtualenv('make upgrade') | ||
|
||
|
||
def test_quality(options_baked): | ||
"""Run quality tests on the given generated output.""" | ||
py_files = [name for name in all_files() if name.endswith(".py")] | ||
|
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 |
---|---|---|
|
@@ -11,7 +11,7 @@ | |
|
||
from .bake import bake_in_temp_dir | ||
from .common_tests import * # pylint: disable=wildcard-import | ||
from .venv import all_files, run_in_virtualenv | ||
from .venv import all_files | ||
|
||
LOGGING_CONFIG = { | ||
'version': 1, | ||
|
@@ -60,6 +60,8 @@ def fixture_options_baked(cookies_session, request, custom_template): | |
baked result. | ||
""" | ||
with bake_in_temp_dir(cookies_session, extra_context=request.param, template=custom_template): | ||
sh.make('upgrade') | ||
sh.pip('install', '-r', 'requirements/test.txt') | ||
yield request.param | ||
|
||
|
||
|
@@ -100,16 +102,8 @@ def test_setup_py(options_baked): | |
assert " author_email='[email protected]'," in setup_text | ||
|
||
|
||
def test_upgrade(options_baked): | ||
"""Make sure the upgrade target works""" | ||
run_in_virtualenv('make upgrade') | ||
|
||
|
||
def test_quality(options_baked): | ||
"""Run quality tests on the given generated output.""" | ||
sh.make('upgrade') | ||
sh.pip('install', '-r', 'requirements/base.txt') | ||
|
||
py_files = [name for name in all_files() if name.endswith(".py")] | ||
sh.pylint(*py_files) | ||
sh.pycodestyle(*py_files) | ||
|