3333 MongoIsRunning ,
3434 PytestUsesMongoRequest ,
3535 UsesMongoRequest ,
36- rules as mongo_rules
36+ rules as mongo_rules ,
3737)
3838from .platform_rules import Platform
3939from .target_types import UsesServicesField
@@ -110,11 +110,11 @@ def platform(
110110
111111
112112# TODO: this requires that mongo be running...
113- #def test_is_running(rule_runner: RuleRunner) -> None:
113+ # def test_is_running(rule_runner: RuleRunner) -> None:
114114# request = UsesMongoRequest()
115115# mock_platform = platform()
116116
117- # we are asserting that this does not raise an exception
117+ # we are asserting that this does not raise an exception
118118# is_running = run_mongo_is_running(rule_runner, request, mock_platform)
119119# assert is_running
120120
@@ -176,7 +176,7 @@ def platform(
176176def test_not_running (rule_runner : RuleRunner , mock_platform : Platform ) -> None :
177177 request = UsesMongoRequest (
178178 db_host = "127.100.20.7" ,
179- db_port = 10 , # unassigned port, unlikely to be used
179+ db_port = 10 , # unassigned port, unlikely to be used
180180 )
181181
182182 with pytest .raises (ExecutionError ) as exception_info :
@@ -187,7 +187,7 @@ def test_not_running(rule_runner: RuleRunner, mock_platform: Platform) -> None:
187187
188188 exc = execution_error .wrapped_exceptions [0 ]
189189 assert isinstance (exc , ServiceMissingError )
190-
190+
191191 assert exc .service == "mongo"
192192 assert "The mongo service does not seem to be running" in str (exc )
193193 assert exc .instructions != ""
0 commit comments