Skip to content

Commit f6540a6

Browse files
committed
Del:scissors: all things about tests
Time flies! 😭 Due to our new work assignments, there is REALLY no more time to do any things for tests. Hope to have time to do sth about this in the future. One more thing (written in `guide.md` already): Our development does not involve changing the original code in package `bugzilla`. What we do is just adding sth new. So we try ensuring is that once there is no problem in original *python-bugzilla*, the code added by us will also work well.
1 parent 6f463ef commit f6540a6

File tree

131 files changed

+2
-5400
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

131 files changed

+2
-5400
lines changed

bugzilla/_mi.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import requests.exceptions
3131

3232
import bugzilla
33-
from ._cli import _is_unittest_debug
3433
from ._cli import open_without_clobber
3534
from ._cli import _setup_root_parser
3635
from ._cli import _setup_action_new_parser
@@ -230,9 +229,6 @@ def level_logging(debug, verbose):
230229
else:
231230
log.setLevel(logging.WARN)
232231

233-
if _is_unittest_debug():
234-
log.setLevel(logging.DEBUG) # pragma: no cover
235-
236232

237233
##################
238234
# Option parsing #

docs/README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,10 @@ It introduces how our **MI** is built based on the previous **CLI** and its appl
5858
/python-bugzilla
5959
](https://github.com/python-bugzilla/python-bugzilla), reading it will enable you to quickly understand and use this project.
6060

61-
### `tests.md`
62-
63-
Describe these things about running the unit test.
64-
65-
### `assets`: demos & charts
61+
### `assets`
6662

6763
| Item | Description |
6864
|------|-------------|
6965
| workflow.drawio | It is drawn with [jgraph/drawio](https://github.com/jgraph/drawio) and shows how we maintain this project. |
7066
| workflow.drawio.png | Rendered from `workflow.drawio` for using in `python-bugzilla-mi/README.md`. |
67+
|demo_frontend.py|...|

docs/guide.md

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -177,18 +177,6 @@ def _get_timeout(self):
177177
return float(envtimeout or DEFAULT_TIMEOUT)
178178
```
179179

180-
### 2.3.3. `__BUGZILLA_UNITTEST_DEBUG`
181-
182-
It may be changed by `tests.conftest.pytest_configure`, but only affects the return value of `bugzilla._cli._is_unittest_debug`. It seems that the only function it has is to ensure that global log output level is `DEBUG`.
183-
184-
:warning: As the author of this guide I cannot accurately determine its use at present, please use with care if you need.
185-
186-
### 2.3.4. `__BUGZILLA_UNITTEST`
187-
188-
Referred only in `tests.__init__` as `os.environ["__BUGZILLA_UNITTEST"] = "1"`. It is suspected that this is a bug, the statement is more likely to be `os.environ["__BUGZILLA_UNITTEST_DEBUG"] = "1"`.
189-
190-
:warning: As the author of this guide I cannot accurately determine its use at present, please use with care if you need.
191-
192180
## 2.4 Exit *MI*
193181

194182
It is recommand that do <kbd>Ctrl</kbd>+<kbd>C</kbd> or equivalent operation. The try-except mechanism in `MI` would catch `KeyboardInterrupt` and print

docs/tests.md

Whitespace-only changes.

tests/__init__.py

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/conftest.py

Lines changed: 0 additions & 105 deletions
This file was deleted.

tests/data/authfiles/output-bugzillarc.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/data/authfiles/output-token.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

tests/data/bz-attach-get1.txt

Lines changed: 0 additions & 33 deletions
This file was deleted.

tests/data/clioutput/test_info_components-active.txt

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)