You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by tv...@apache.org on 2019/10/08 19:01:29 UTC
[beam] 01/01: Use assertIn for inclusion check.
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 <tv...@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():