我有一個pytest測試,像這樣:現在 email_two = generate_email_two()
@pytest.mark.parametrize('email', ['[email protected]', email_two])
def test_email_thing(self, email):
... # Run some test with the email
在DoctrineFixturesBundle如果我想按指定順序我有任何這樣的夾具類的方法來創建執行燈具: public function getOrder()
{
return 2;
}
這是不指定順序舒適的方式。 在Laravel框架我能做到這一點是這樣的: class DatabaseSeeder extends Seeder
{
public function