Skip to content

Latest commit

 

History

History
53 lines (32 loc) · 1.94 KB

File metadata and controls

53 lines (32 loc) · 1.94 KB

swissunihockey-club-game-schedule-exporter

License GitHub release (latest by date) Python tests CodeQL

Twitter

A python application that allows to export the home game schedule of a club belonging to swiss unihockey to a Word document.

Setup

  1. create virtual environment

    ~/python39/python.exe -m venv venv

  2. activate virtual environment by executing the following command in PyCharms Terminal

    venv/Scripts/activate

  3. install dependencies

    pip install -r requirements.txt

Run

  1. change to directory src

  2. execute python app

    python export_club_game_schedule.py

Execute tests

In PyCharm IDE:

  1. set default test runner to pytest

    • Open settings in PyCharm: File > Settings...
    • Navigate to Tools > Python Integrated Tools
    • Under Testing select pytest as default test runner
  2. open file tests/test_export_club_game_schedule.py

  3. right click on tab in editor and execute Run 'pytest in test_expor...'

In Terminal of Pycharm IDE:

  1. activate venv if not yet active

  2. change to tests directory

    cd src\tests

  3. execute pytest

    pytest