python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
Do Subscribers work while loading Fixtures in Symfony?
I tried to run the fixture below on Symfony 5 using the command php bin/console d:f:l.
I get this error: SQLSTATE[23000]: Integrity constraint violation: 1048 Column 'contact_email' cannot be null
The...

Edouard
Votes: 0
Answers: 1
Is it possible to pass a flag or argument dynamically to pytest fixtures?
I would like to do an optimization doing something like this.
example:
usually my tests do something like this:
launch test command > flash desired build > do the test > teardown
I would lik...
Edgar L
Votes: 0
Answers: 0
django: IntegrityError: Problem installing fixture '/app/fixtures.json': Could not load auth.User(pk=1): duplicate key
I run the fixtures locally and everything is alright.
On heroku, i run heroku run python manage.py loaddata fixtures.json and it failed
django.db.utils.IntegrityError: Problem installing fixture '/app...

Dr Linh Chi Nguyen
Votes: 0
Answers: 0
Use Session Scoped Fixture as Variable
I am writing tests in pytest and am using fixtures as variables.
Originally, this is how the fixtures looked:
@pytest.fixture(scope="class")
def user(request):
u = "Matt"
...
user613
Votes: 0
Answers: 1