Use double quotes
This commit is contained in:
parent
7b32ffc599
commit
ea8f1a13e3
1 changed files with 2464 additions and 2466 deletions
|
|
@ -18,7 +18,7 @@ class TestSpecialMethods:
|
|||
"""`Restaurant` has a non-literal text representation."""
|
||||
result = repr(restaurant)
|
||||
|
||||
assert result == f'<Restaurant({restaurant.name})>'
|
||||
assert result == f"<Restaurant({restaurant.name})>"
|
||||
|
||||
|
||||
@pytest.mark.db
|
||||
|
|
@ -45,7 +45,7 @@ class TestConstraints:
|
|||
|
||||
with pytest.raises(
|
||||
sa_exc.IntegrityError,
|
||||
match='fk_restaurants_to_addresses_via_address_id',
|
||||
match="fk_restaurants_to_addresses_via_address_id",
|
||||
):
|
||||
db_session.execute(stmt)
|
||||
|
||||
|
|
@ -56,7 +56,7 @@ class TestConstraints:
|
|||
|
||||
with pytest.raises(
|
||||
sa_exc.IntegrityError,
|
||||
match='realistic_estimated_prep_duration',
|
||||
match="realistic_estimated_prep_duration",
|
||||
):
|
||||
db_session.commit()
|
||||
|
||||
|
|
@ -67,6 +67,6 @@ class TestConstraints:
|
|||
|
||||
with pytest.raises(
|
||||
sa_exc.IntegrityError,
|
||||
match='realistic_estimated_prep_duration',
|
||||
match="realistic_estimated_prep_duration",
|
||||
):
|
||||
db_session.commit()
|
||||
|
|
|
|||
Loading…
Reference in a new issue