hopfenspace / MateBot

Micro service providing an API for MateBot clients

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add unittests for the parsing package

CrsiX opened this issue · comments

commented

Adding unittests for the parsing package seems to be pretty straightforward to do. The module test already contains the things needed to create those tests.

Python's doc about the test module:

The test package is meant for internal use by Python only. It is documented for the benefit of the core developers of Python. Any use of this package outside of Python’s standard library is discouraged as code mentioned here can change or be removed without notice between releases of Python.

We should use unittest ;P

commented

Did you take a look into the file? 😂
We make use of the unittest framework in our own module test. If you don't want the name, we can rename our module, of course. But I think it's clear that you run the script/module test to check the mate_bot package, isn't it?

commented

Input parsing is done in client applications, therefore this won't be part of the API server anymore.