beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tvalen...@apache.org
Subject [beam] 01/01: Use assertIn for inclusion check.
Date Tue, 08 Oct 2019 19:01:29 GMT
This is an automated email from the ASF dual-hosted git repository.

tvalentyn pushed a commit to branch tvalentyn-patch-1
in repository https://gitbox.apache.org/repos/asf/beam.git

commit 27f46246ea23d3660c31f45d10dbc6b96e35305d
Author: tvalentyn <tvalentyn@users.noreply.github.com>
AuthorDate: Tue Oct 8 12:00:43 2019 -0700

    Use assertIn for inclusion check.
---
 sdks/python/apache_beam/runners/portability/portable_runner_test.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sdks/python/apache_beam/runners/portability/portable_runner_test.py b/sdks/python/apache_beam/runners/portability/portable_runner_test.py
index 9075a83..80afea7 100644
--- a/sdks/python/apache_beam/runners/portability/portable_runner_test.py
+++ b/sdks/python/apache_beam/runners/portability/portable_runner_test.py
@@ -335,8 +335,8 @@ class PortableRunnerInternalTest(unittest.TestCase):
           'environment_type': "EXTERNAL",
           'environment_config': '{"params":{"test":"test"}}',
       }))
-    self.assertTrue(
-        'External environment endpoint must be set.'in ctx.exception.args)
+    self.assertIn(
+        'External environment endpoint must be set.', ctx.exception.args)
 
 
 def hasDockerImage():


Mime
View raw message