Skip to content

Conversation

@adroffner
Copy link

This is my ABC Bank project for your review.

I have used python3.4 to develop the code. Also, I added comments to every method suitable for auto-documentation (Sphinx as I recall).

I replaced the "nose" unit test with the standard "unittest" module. "unittest" is more flexible since it has setUp(), tearDown(), & ways to test raised exceptions. It also has the "unittest.mock" library to pretend we have a database, etc (did not apply here). You can still run the ./nosetests script on it.

I also verified test code coverage, using coverage.py. Here;s is the current result:
$ nosetests --with-coverage ./tests/
.........................

Name Stmts Miss Cover Missing

abcbank 0 0 100%
abcbank.account 45 0 100%
abcbank.bank 13 0 100%
abcbank.customer 33 0 100%

abcbank.transaction 15 1 93% 32

TOTAL 106 1 99%

Ran 25 tests in 0.008s

OK

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant