Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

live_server fixture does not see database updates #489

Closed
mpasternak opened this issue Jun 12, 2017 · 5 comments
Closed

live_server fixture does not see database updates #489

mpasternak opened this issue Jun 12, 2017 · 5 comments

Comments

@mpasternak
Copy link

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.

@blueyed
Copy link
Contributor

blueyed commented Jun 12, 2017

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

@mpasternak
Copy link
Author

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

@blueyed
Copy link
Contributor

blueyed commented Jun 13, 2017

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?

@mpasternak
Copy link
Author

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

@mpasternak
Copy link
Author

This was a problem with my code. Whew.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants