replace everywhere: 'is [not] None' -> '(==|!=) None'

This commit is contained in:
Joeri Exelmans 2024-09-04 09:50:30 +02:00
parent 3ae35a87d0
commit ec1a9dbfca
28 changed files with 690 additions and 668 deletions

View file

@ -3,7 +3,7 @@ import pytest
@pytest.mark.usefixtures("state")
def test_read_dict_keys_no_exists(state):
assert state.read_dict_keys(100000) is None
assert state.read_dict_keys(100000) == None
@pytest.mark.usefixtures("state")
@ -13,14 +13,14 @@ def test_read_dict_keys_simple(state):
c = state.create_nodevalue("f")
d = state.create_edge(a, b)
e = state.create_edge(d, c)
assert a is not None
assert b is not None
assert c is not None
assert d is not None
assert e is not None
assert a != None
assert b != None
assert c != None
assert d != None
assert e != None
l = state.read_dict_keys(a)
assert l is not None
assert l != None
assert set(l) == set([c])
@ -31,21 +31,21 @@ def test_read_dict_keys_multi(state):
c = state.create_nodevalue("f")
d = state.create_edge(a, b)
e = state.create_edge(d, c)
assert a is not None
assert b is not None
assert c is not None
assert d is not None
assert e is not None
assert a != None
assert b != None
assert c != None
assert d != None
assert e != None
g = state.create_node()
h = state.create_nodevalue("k")
i = state.create_edge(a, g)
j = state.create_edge(i, h)
assert g is not None
assert h is not None
assert i is not None
assert j is not None
assert g != None
assert h != None
assert i != None
assert j != None
l = state.read_dict_keys(a)
assert l is not None
assert l != None
assert set(l) == set([c, h])