Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.08 KB

readme.md

File metadata and controls

34 lines (23 loc) · 1.08 KB

Flagsmith Task Processor

This repository holds the code responsible for the Flagsmith Task Processor functionality.

Development

This repository contains a django app that is intended to be used only when integrated with the main Flagsmith repository or other Flagsmith dependencies.

Local Setup

This repository uses poetry for package management and versioning. Run the following commands to set up a local development environment and run the unit tests.

pip install poetry
poetry install
export DJANGO_SETTINGS_MODULE=tests.settings DATABASE_URL=postgres://postgres:password@localhost:5432/flagsmith_task_processor
poetry run pytest tests/unit

Testing

Unit

The unit tests should be run using pytest as usual, these tests should mock out any external dependencies or create test classes as needed.

Publishing & Releases

This package is included as a dependency in the main Flagsmith repository. New releases should be created using the releases functionality in Github and updated in the main Flagsmith repository.