Top "Fixtures" questions

Fixtures are scopes used for running tests which isolate each test from global namespace pollution and side-effects from previous tests in order to avoid false positives and false negatives

Is it possible to load doctrine fixtures without deleting database

I have defined some fixtures in doctrine. When i try to run using this php app/console doctrine:fixtures:load …

php symfony doctrine-orm fixtures
pytest-mock mocker in pytest fixture

I'm trying to find out why I don't seem to be able to use a mocked return value in a …

python unit-testing mocking pytest fixtures
Symfony 3.4.0 Could not find any fixture services to load

I am using Symfony 3.4.0, I try to load fixtures with: php bin/console doctrine:fixtures:load An error occurred while …

symfony doctrine fixtures symfony-3.4
In Django, getting a "Error: Unable to serialize database" when trying to dump data?

I'm getting an error when I'm trying to dump data to a JSON fixture in Djanog 1.2.1 on my live server. …

mysql django json fixtures dumpdata
Django: Create fixtures without specifying a primary key?

One of the things that bugs me about Django fixtures is that you've got to specify every model's primary key. …

django fixtures
How to load sql fixture in Django for User model?

Does anyone knows how to load initial data for auth.User using sql fixtures? For my models, I just got …

sql django fixtures fixture
Using factory_girl in Rails with associations that have unique constraints. Getting duplicate errors

I'm working with a Rails 2.2 project working to update it. I'm replacing existing fixtures with factories (using factory_girl) and …

ruby-on-rails ruby unit-testing fixtures factory-bot
Can I pass arguments to pytest fixtures?

The baseline of all my tests is that there will always be a taxi with at least one passenger in …

python pytest fixtures
In which order are pytest fixtures executed?

For an application I'm testing I'd like to create an autouse=True fixture which monkeypatches smtplib.SMTP.connect to fail …

python fixtures pytest
Django: loaddata not working

I generated a fixture: python manage.py dumpdata --all > ./mydump.json I emptied all my databases using: python manage.…

python django dump fixtures dumpdata