File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed
Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ Your one-stop solution for managing all standard tasks and core workflows of you
4747🔌️ Prerequisites
4848-----------------
4949
50- - `Python <https://www.python.org/ > `__ >= 3.9
50+ - `Python <https://www.python.org/ `__ >= 3.9
5151
5252💾 Installation
5353---------------
Original file line number Diff line number Diff line change 1+ import pytest
2+ from nox .command import CommandFailed
13from toolbox .nox ._lint import dist_check
24
35
46class TestDistributionCheck :
57 @staticmethod
6- def test_works_as_expected (nox_session , capsys ):
8+ def test_works_as_expected (nox_session ):
79 dist_check (nox_session )
10+
11+ @staticmethod
12+ def test_raises_non_zero_exist_with_readme_error (nox_session ):
13+ # TODOs
14+ # 1. copy package files to a temp directory
15+ # 2. mock/alter the path for the function you need to use for testing
16+ # 3. modify rst file to have a broken link like is in this commit:
17+ # - `Python <https://www.python.org/`__ >= 3.9
18+
19+ with pytest .raises (CommandFailed ) as e :
20+ dist_check (nox_session )
21+ # verify broken with non-zero exit status
22+ assert str (e .value ) == "Returned code 1"
You can’t perform that action at this time.
0 commit comments