Git Product home page Git Product logo

coverage-sqlalchemy-async's Introduction

python3 -m venv venv
pip install -r requirements.txt

I can't just use SQLite because we need an async DB driver. The exact steps migth vary depending on your system / Postgres setup.

sudo -u postgres createuser test
sudo -u postgres createdb test -O test
echo "ALTER ROLE test PASSWORD 'test'"|sudo -u postgres psql
./runtests.sh

Coverage report:

Name              Stmts   Miss  Cover   Missing
-----------------------------------------------
app/__init__.py       0      0   100%
app/main.py          35     15    57%   27-50, 59
app/tests.py          8      0   100%
-----------------------------------------------
TOTAL                43     15    65%

Lines 27-50 and 59 clearly do run, otherwise the test would not pass. You can also verify this with a debugger.

coverage-sqlalchemy-async's People

Contributors

rfleschenberg avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.