Build w/ Python 5: Writing Python Unit test (+ submitting our python package)

Veröffentlicht am: 22 April 2022
auf dem Kanal: Samuel Chan
248
2

This epsidoe goes into more Python unit testing prior to publishing our python tool. As a bonus, we'll also cover re-submitting our python package.

0:00 Python testing
0:38:43 Unittest.mock import patch (to test python print output / mock print)
0:59:32 Update (re-upload) python package on PyPI

Watch Part 0 [Taskwarrior: Terminal-based task management for getting things done (GTD) | Productivity tutorial]:    • Taskwarrior: Terminal-based task managemen...  

Watch Part 1 [Build w/ Python 1: Command line productivity scoreboard for TaskWarrior]:    • TaskWarrior: Command line productivity sco...  

Watch Part 2 [Build w/ Python 2: Colorful terminal CLI, argparse, python package structure (production-ready)]:    • Build w/ Python 2: Colorful terminal CLI, ...  

[Build w/ Python 3: Build & Publish our Python Package!] :   • Build w/ Python 3: (how to) build & publis...  

[Build w/ Python 4: Python Code Refactoring](   • Build w/ Python 4: Python Code Refactoring...  )

This episode covers how to write modular python functions through code refactoring our python package! Breaking up one big function into several smaller functions for unit testing!

Anyone in the world can now just run `pip install taskquant` and see a scoreboard of their task by doing `tq` (stands for "TaskQuant")

Link to code repo:
https://github.com/onlyphantom/taskquant

Link to PyPI:
https://pypi.org/project/taskquant/

Link to tasklib:
https://github.com/GothenburgBitFacto...

Link to TaskWarrior:
https://github.com/GothenburgBitFacto...


Auf dieser Seite können Sie das Online-Video Build w/ Python 5: Writing Python Unit test (+ submitting our python package) mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Samuel Chan 22 April 2022 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 248 Mal angesehen und es wurde von 2 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!