bocdaz / template-python-project

A starter project template for new python project.
0 stars 0 forks source link

Initial unit tests for cookiecutter #24

Closed lucasmelin closed 2 years ago

lucasmelin commented 2 years ago

Test basic project creation as well as the lint and tests nox sessions in the created project. Because the tests run through a poetry install followed by a nox session, these can take some time to run (locally it was about 60 seconds).

Fixes #23

lucasmelin commented 2 years ago

You can see that the test catches any issues raised during nox -rs lint:

image

In this instance, it's due to an outdated version of flake8-bandit, version 2.1.3 should have the required patch.

lucasmelin commented 2 years ago

I'm open to any suggestions of additional things we should test for.

lucasmelin commented 2 years ago

@slougheed and @marceloKatayama - if I could get your 👀 on this at some point today, that'd be great. Thanks. Let me know if you think of anything else we should try and catch with these tests.