Skip to content

Commit 72b1801

Browse files
committed
Separating this ensures it won't break other tests.
1 parent cd700cd commit 72b1801

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

test/examples/test_examples.py

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -106,16 +106,6 @@ def test_result_retain_example(self):
106106

107107
self.assertEqual(employee_count, 2)
108108

109-
def test_service_unavailable_example(self):
110-
from service_unavailable_example import ServiceUnavailableExample
111-
112-
example = ServiceUnavailableExample(self.bolt_uri, self.user, self.password)
113-
ExamplesTest.controller.stop()
114-
115-
self.assertFalse(example.addItem())
116-
117-
ExamplesTest.controller.start()
118-
119109
def test_session_example(self):
120110
from session_example import SessionExample
121111

@@ -154,3 +144,14 @@ def person_count(self, name):
154144
with driver.session() as session:
155145
record_list = list(session.run("MATCH (a:Person {name: $name}) RETURN count(a)", {"name": name}))
156146
return len(record_list)
147+
148+
149+
class ServiceUnavailableTest(IntegrationTestCase):
150+
151+
def test_service_unavailable_example(self):
152+
from service_unavailable_example import ServiceUnavailableExample
153+
154+
example = ServiceUnavailableExample(self.bolt_uri, self.user, self.password)
155+
self.__class__._stop_server()
156+
157+
self.assertFalse(example.addItem())

0 commit comments

Comments
 (0)