Skip to content

Latest commit

 

History

History
58 lines (39 loc) · 1.96 KB

README.md

File metadata and controls

58 lines (39 loc) · 1.96 KB

yeast_cc_db

Tests Coverage Built with

A database of Scerevisiae calling cards data. Check out the project's documentation.

Prerequisites

Local Development

Start the dev server for local development:

docker-compose up

Run a command inside the docker container:

docker-compose run --rm web [command]

Notes for later

I removed the nose test runner entirely. I did this by adding django-pytest, changing the local config to this:

# Testing
INSTALLED_APPS = Common.INSTALLED_APPS
INSTALLED_APPS += ('pytest_django',)
TEST_RUNNER = 'callingcards.PytestTestRunner.PytestTestRunner'
# settings for pytest
# create a pytest.ini file in your project root directory and add the following content
# [pytest]
# addopts = --cov=callingcards --cov-report=html

and adding the script per these instructions

note the pytest.ini in this package of course.

I then rmeoved all the nose imports from the test scripts and replaced them with assert statements for pytest and removed nose from the dependencies

some additional deps

django-extensions added

add to config/common INSTALLED_APPS 'django_extensions

which makes this work easily:

poetry run python manage.py shell_plus --ipython

and can get a jupyter interface working, too