File tree 3 files changed +15
-9
lines changed
3 files changed +15
-9
lines changed Original file line number Diff line number Diff line change
1
+ def serialize_report (rep ): ...
2
+ def pytest_addoption (parser ) -> None : ...
3
+ def pytest_load_initial_conftests (early_config , parser , args ) -> None : ...
4
+ def pytest_runtest_protocol (item ): ...
5
+ def forked_run_report (item ): ...
6
+ def report_process_crash (item , result ): ...
Original file line number Diff line number Diff line change 2
2
import unittest
3
3
from os import system
4
4
5
- import pytest # type: ignore # for pyre in tox only
6
- import pytest_forked # type: ignore # pylint: disable=unused-import # This needs pytest-forked
5
+ import pytest
6
+ import pytest_forked # pylint: disable=unused-import # Ensure pytest-forked is installed
7
7
8
8
import xcp .net .biosdevname
9
9
12
12
13
13
def check_devices (self , devices ):
14
14
for item in devices .items ():
15
- print ( item [0 ])
16
- print ( item [1 ]["BIOS device" ])
17
- print ( item [1 ]["Assigned MAC" ])
18
- print ( item [1 ]["Bus Info" ])
19
- print ( item [1 ]["Driver" ])
15
+ assert item [0 ]
16
+ assert item [1 ]["BIOS device" ]
17
+ assert item [1 ]["Assigned MAC" ]
18
+ assert item [1 ]["Bus Info" ]
19
+ assert item [1 ]["Driver" ]
20
20
21
21
22
22
class TestDeviceNames (unittest .TestCase ):
Original file line number Diff line number Diff line change 4
4
import unittest
5
5
from subprocess import PIPE
6
6
7
- import pytest # type: ignore # for pyre in tox only
8
- import pytest_forked # type: ignore # pylint: disable=unused-import # This needs pytest-forked
7
+ import pytest
8
+ import pytest_forked # pylint: disable=unused-import # Ensure pytest-forked is installed
9
9
from mock import Mock , patch
10
10
11
11
import xcp .net .ip
You can’t perform that action at this time.
0 commit comments