File tree Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Expand file tree Collapse file tree 2 files changed +2
-22
lines changed Original file line number Diff line number Diff line change 8
8
import pytest
9
9
import pretend
10
10
11
- from pip_check_reqs import find_extra_reqs , common , __version__
11
+ from pip_check_reqs import find_extra_reqs , common
12
12
13
13
14
14
@pytest .fixture
@@ -166,13 +166,3 @@ def parse_args(self):
166
166
assert messages [1 :] == result
167
167
else :
168
168
assert messages == result
169
-
170
-
171
- def test_main_version (monkeypatch , caplog , fake_opts ):
172
- fake_opts .options .version = True
173
- monkeypatch .setattr (optparse , 'OptionParser' , fake_opts )
174
-
175
- with pytest .raises (SystemExit ) as excinfo :
176
- find_extra_reqs .main ()
177
-
178
- assert str (excinfo .value ) == __version__
Original file line number Diff line number Diff line change 8
8
import pytest
9
9
import pretend
10
10
11
- from pip_check_reqs import find_missing_reqs , common , __version__
11
+ from pip_check_reqs import find_missing_reqs , common
12
12
13
13
14
14
@pytest .fixture
@@ -176,13 +176,3 @@ def parse_args(self):
176
176
assert messages [1 :] == result
177
177
else :
178
178
assert messages == result
179
-
180
-
181
- def test_main_version (monkeypatch , caplog , fake_opts ):
182
- fake_opts .options .version = True
183
- monkeypatch .setattr (optparse , 'OptionParser' , fake_opts )
184
-
185
- with pytest .raises (SystemExit ) as excinfo :
186
- find_missing_reqs .main ()
187
-
188
- assert str (excinfo .value ) == __version__
You can’t perform that action at this time.
0 commit comments