Drop-in replacement GUI for Django testing.
Project description
testgui
Drop-in replacement GUI for Django testing and testing with unittest.
Usage:
Django: replace your management command test
with testgui
. It works with the same parameters out of the box. eg.
python manage.py testgui
Unittest: change your test file code like this:
from testgui import unittestgui
...
if __name__ == '__main__':
unittestgui.main() # instead of unittest.main()
Here's a screenshot with TestGUI in operation, after calling python manage.py testgui:
Installation:
pip install testgui
To use with unittests you are set up.
To use django management command, add testgui to INSTALLED_APPS in settings.py:
INSTALLED_APPS = [
...
'testgui',
...
]
Dependencies:
- [django] [only required if you want to use it as a django management command]
- pywebview
Compatible with redgreenunittest.
License:
MIT license
Features:
- hot module reload* (You don't need to restart testing after you've changed your code.)
- hot test re-population (If you've changed the name of your test or added new tests, still don't need to restart testing.)
- normal debugging (You can still use PyCharm or your favorite IDE to debug your code, just as with manage.py test.)
- run selected test (You just click the icon next to a test or an app and your test runs, don't need to stop debugging.)
*note that unfortunately models.py and admin.py files cannot be hot-reloaded by Django's design. However, TestGUI warns you about this and it does not hot-reload these modules.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file testgui-0.3.tar.gz
.
File metadata
- Download URL: testgui-0.3.tar.gz
- Upload date:
- Size: 356.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 734db4150be54acc927b5f468d64e7a9f530fc42cac647229c4ca5ef826efbed |
|
MD5 | 9236ecc6eb16ec12ad1e1938a620dce4 |
|
BLAKE2b-256 | d7d2c8c7a13cc8df34399eb0ee5db2dc5d07c09d1417740357ff6723ee7975a9 |
File details
Details for the file testgui-0.3-py3-none-any.whl
.
File metadata
- Download URL: testgui-0.3-py3-none-any.whl
- Upload date:
- Size: 355.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.9.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31f29e30f6b08d14b7848a9e01e8667566ba4fdb08c4f7ee77f6bf194788897a |
|
MD5 | c900abee16aa6d65030abe73e26076a1 |
|
BLAKE2b-256 | 9e8b762254c6a88b8343b5dc16576fcd35b9d8243e1159e8bfa8a73c4233da8d |