test_metadata_provider# test_create_metadata_provider_with_user# Source code in tests/unit/apps/core/models/test_metadata_provider.py 8 9 10 11 12 13def test_create_metadata_provider_with_user(metadata_provider, user): metadata_provider.user = user metadata_provider.save() assert metadata_provider.id is not None assert metadata_provider.user is not None assert metadata_provider.user == user test_delete_metadata_provider_with_foreign_keys# Source code in tests/unit/apps/core/models/test_metadata_provider.py 16 17 18 19 20 21 22def test_delete_metadata_provider_with_foreign_keys(metadata_provider, user): metadata_provider.user = user metadata_provider.save() metadata_provider.delete() user.delete() assert metadata_provider.removed assert user.is_removed