From cc79c96538939c3f2bafa8e844177abbc2fa3fa2 Mon Sep 17 00:00:00 2001 From: Moul <moul@moul.re> Date: Thu, 3 Oct 2019 18:38:26 +0200 Subject: [PATCH] [test] #103: Install pytest{,-async,-sugar}, change Makefile rule --- Makefile | 2 +- requirements_dev.txt | 3 +++ todos.txt | 37 +++++++++++++++++++++++++++++++++++++ 3 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 todos.txt diff --git a/Makefile b/Makefile index ac230122..8a6d11cc 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,7 @@ docs: # run tests tests: - python3 -m unittest ${TESTS_FILTER} + python3 -m pytest ${TESTS_FILTER} # check check: mypy pylint check-format diff --git a/requirements_dev.txt b/requirements_dev.txt index 1d175d6a..e3ff88a2 100644 --- a/requirements_dev.txt +++ b/requirements_dev.txt @@ -4,3 +4,6 @@ pylint black sphinx sphinx_rtd_theme +pytest +pytest-asyncio +pytest-sugar diff --git a/todos.txt b/todos.txt new file mode 100644 index 00000000..2c56bf33 --- /dev/null +++ b/todos.txt @@ -0,0 +1,37 @@ +- DuniterPy: + - mv reduce_base from document/transaction.py to helpers/money.py + - mv amount_in_current_base() from silkaj to helpers/money.py + - handle input and output sources (seperate cases with type()) + - write tests + - implement /blockchain/branches BMA path + - {Out,In}PutSource: get rid of inline(), inline_condition() + - Create a website + - implement a class to handle numbers, to access same amount expressed in unit (* 100), decimal, current, previous and future UD values + - #106: README.rst -> README.md, handle formatting for setup.py (to PyPi) + - Readme: add Silkaj, updates + - #66: Migrate DuniterPy to Poetry/pyproject.toml + - Tests on all supported Python versions + - #103: Switch to Pytest + - duniterpy/api/endpoint.py:BMA: rename `server` to `host(name)` + - sources: rename `noffset` to `pos` position as in Duniter code. Much easier to understand + - I think BMA gives `noffset`. It might be in the jsonschema + - CI/CD: check-format called twice: in `format` and `check` jobs: + - Separate distincts jobs for each tasks, pylint and mypy are also in the same job + +- Duniter: + - GVA module: LICENSE + - Web admin v2: LICENSE + +- Monit: + - remove librelois.fr calls from views/{HEAD,Chart}.html + - cesium.monnaielibreoccitanie.fr: cesium logo: views/about.html + +- Wot-Wizard: + - calls to cloudflare + +- Gchange: + - UD amount + +- Presentation for BlockchainHub Graz: + - http://cuckooland.free.fr/reveal/LibreCurrencyInAFifthOfATime.html#/ + - https://forum.monnaie-libre.fr/t/presentation/6707 -- GitLab