Pytest-django: live_server fixture does not see database updates

Created on 13 Jun 2017  路  5Comments  路  Source: pytest-dev/pytest-django

Hi,

it looks like live_server process does not see my database updates.

I'm using either PostgreSQL or an in-memory SQLite 3, does not matter.

I want to be able to change the database from inside my test function and to make live_server see the change.

Is there anything special I should do?

I've tried adding transaction_db fixture to my test functions, does not mater.

Most helpful comment

I want to be able to change the database from inside my test function and to make live_server see the change.

How do you do that?

All 5 comments

Can you provide a minimal test case?
What about providing it as a PR then also?
(we're quite test-driven here for reasons ;))

I understand that this is not intended behavior. In this case I'll work on a better report and probably a pr. Thanks.

I want to be able to change the database from inside my test function and to make live_server see the change.

How do you do that?

Looks like it is a problem with my environment because I can't replicate it in an example app. If anything changes in this terms I'll reopen. Thanks

This was a problem with my code. Whew.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rlskoeser picture rlskoeser  路  7Comments

WoLpH picture WoLpH  路  7Comments

tolomea picture tolomea  路  4Comments

dan-passaro picture dan-passaro  路  4Comments

AndreaCrotti picture AndreaCrotti  路  5Comments