Skip to content

A simple subscription system, wrote with Python 3, with no framework support. TDD approach

License

Notifications You must be signed in to change notification settings

nffdiogosilva/subscription

Repository files navigation

Subscription System

Build Status Coverage Status Updates Python 3PyPI version fury.io Code Style

A simple subscription system, wrote entirely with Python 3, with no framework support whatsoever.

To run project (with docker):

Dependencies needed: docker

$ git clone <repo_url>
$ cd <project_dir>
$ docker image build -t subscription-test .

# By default, this docker container run command will run the tests via pytest
$ docker container run --rm -it subscription-test

To run project (with local computer):

Dependencies needed: python 3 and pipenv.

$ git clone <repo_url>
$ cd <project_dir>
$ pipenv install
$ pipenv shell

# To make the tests run
$ pytest

Summary

After running the pytest, the code coverage will be generated inside folder "htmlcov". To check results, consult the htmlconv/index.html page. In this case, this folder is already included in the repository, with the latest results. Please consult the file htmlcov/index.html to see the code coverage detailed.

You can use the Visual Studio Code Remote Containers feature!

To run the project inside a container, with Visual Studio Code, just choose the option "Re-Open folder inside container". After that you can launch the tests in the DEBUG tab.

MIT License

Copyright (c) [2019] [Nuno Diogo da Silva diogosilva.nuno@gmail.com]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

A simple subscription system, wrote with Python 3, with no framework support. TDD approach

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published