diff --git a/tests/starwars_relay/test_connections.py b/tests/starwars_relay/test_connections.py index 7d385514..5f115e49 100644 --- a/tests/starwars_relay/test_connections.py +++ b/tests/starwars_relay/test_connections.py @@ -33,5 +33,5 @@ def test_correct_fetch_first_ship_rebels(): } } result = schema.execute(query) - assert result.errors == None + assert not result.errors assert result.data == expected diff --git a/tests/starwars_relay/test_objectidentification.py b/tests/starwars_relay/test_objectidentification.py index 1c4a0ba2..ced7daa7 100644 --- a/tests/starwars_relay/test_objectidentification.py +++ b/tests/starwars_relay/test_objectidentification.py @@ -19,7 +19,7 @@ def test_correctly_fetches_id_name_rebels(): } } result = schema.execute(query) - assert result.errors == None + assert not result.errors assert result.data == expected def test_correctly_refetches_rebels(): @@ -40,7 +40,7 @@ def test_correctly_refetches_rebels(): } } result = schema.execute(query) - assert result.errors == None + assert not result.errors assert result.data == expected def test_correctly_fetches_id_name_empire(): @@ -59,7 +59,7 @@ def test_correctly_fetches_id_name_empire(): } } result = schema.execute(query) - assert result.errors == None + assert not result.errors assert result.data == expected def test_correctly_refetches_empire(): @@ -80,7 +80,7 @@ def test_correctly_refetches_empire(): } } result = schema.execute(query) - assert result.errors == None + assert not result.errors assert result.data == expected def test_correctly_refetches_xwing(): @@ -101,5 +101,5 @@ def test_correctly_refetches_xwing(): } } result = schema.execute(query) - assert result.errors == None + assert not result.errors assert result.data == expected