Project

Profile

Help

Issue #4481

closed

pulplift does not let you run unit tests with py.test

Added by bmbouter over 5 years ago. Updated over 5 years ago.

Status:
CLOSED - NOTABUG
Priority:
Normal
Assignee:
-
Category:
-
Sprint/Milestone:
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
No
Groomed:
No
Sprint Candidate:
No
Tags:
Dev Environment
Sprint:
Quarter:

Description

I think it's typical to go into an area of the tests (functional or unit) and run your test runner of choice, e.g. py.test. So for example to run these tests I would:

1. activate the pulp3 virtualenv with pulplift using workon pulp
2. cd to pulpcore/tests/unit
3. Run with py.test

I get a whole bunch of errors saying Model class pulpcore.app.models.content.Artifact doesn't declare an explicit app_label and isn't in an application in INSTALLED_APPS.

Note that running the py.test on the functional tests works, so this is a unit test issue.

Workaround

You can use manage.py instead to workaround it. I'm hoping we can get py.test working again somehow also.

Also available in: Atom PDF