https://github.com/fcwu/python-unittest
https://github.com/fcwu/python-unittest
Last synced: 6 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/fcwu/python-unittest
- Owner: fcwu
- Created: 2015-08-03T02:45:06.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-08-03T03:42:22.000Z (almost 11 years ago)
- Last Synced: 2025-03-04T03:25:25.599Z (over 1 year ago)
- Language: Python
- Size: 113 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
```
$ nosetest -v
Test the login function when bad creds are passed. ... ok
Test the login function when an error happens. ... ok
Test the login function when things go right. ... ok
----------------------------------------------------------------------
Ran 3 tests in 0.004s
OK
$ pylint -r n project1/
No config file found, using default configuration
************* Module project1
C: 1, 0: Missing module docstring (missing-docstring)
************* Module project1.authentication
C: 4, 0: Missing function docstring (missing-docstring)
W: 13,11: Catching too general exception Exception (broad-except)
W: 13,22: Unused variable 'exc' (unused-variable)
$ nosetests --with-coverage --cover-package=project1
...
Name Stmts Miss Cover Missing
-------------------------------------------------------
project1 0 0 100%
project1.authentication 12 0 100%
-------------------------------------------------------
TOTAL 12 0 100%
----------------------------------------------------------------------
Ran 3 tests in 0.010s
OK
$ pylint --msg-template='{msg_id}:{line:3d},{column:3d}: {path}: {msg}' -r n project1/ 20 ↵
No config file found, using default configuration
************* Module project1
C0111: 1, 0: project1/__init__.py: Missing module docstring
************* Module project1.authentication
C0111: 4, 0: project1/authentication.py: Missing function docstring
W0703: 13, 11: project1/authentication.py: Catching too general exception Exception
W0612: 13, 22: project1/authentication.py: Unused variable 'exc'
```