diff options
| author | Robie Basak <robie.basak@canonical.com> | 2018-11-27 18:10:33 +0000 |
|---|---|---|
| committer | Robie Basak <robie.basak@canonical.com> | 2018-11-29 12:39:13 +0000 |
| commit | ef394e06cf4b7f2e1ab3132fc4a2e21ada7f52cd (patch) | |
| tree | 14b3679dfb386f204bc9d7c8f1ee8e44dc5cb0b8 /src/settings/plugins/keyfile/tests/keyfiles/Test_Wired_Connection | |
| parent | 011044ef70eeacfee438a979f1f41870ff17a74c (diff) | |
Make dep8 nm test directly invokable
By renaming the test to nm.py, it can be called directly with:
python3 -m unittest nm
To make this work, we also need to move required test setup and teardown
code to setUpModule() and tearDownModule() accordingly, and move other
"script" code into the __name__ == '__main__' idiom.
This then allows easier debugging of failing tests by calling unittest
to run a specific test using the usual method. For example:
sudo python3 -m unittest nm.ColdplugWifi.test_open_b_ip6_raonly_no_pe
Diffstat (limited to 'src/settings/plugins/keyfile/tests/keyfiles/Test_Wired_Connection')
0 files changed, 0 insertions, 0 deletions