From 87090e218e003f9f09bd1a91e9f031a081acc8cf Mon Sep 17 00:00:00 2001 From: Andmedoctopus Date: Thu, 28 Dec 2023 15:47:49 +0200 Subject: [PATCH] Run google search only if called directly --- samples/test_google_search.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/samples/test_google_search.py b/samples/test_google_search.py index e35367c57..3b7b474c1 100755 --- a/samples/test_google_search.py +++ b/samples/test_google_search.py @@ -32,4 +32,5 @@ def test_filling_splinter_in_the_search_box_returns_splinter_website(self): self.assertTrue(self.browser.is_text_present("https://splinter.readthedocs.io")) -unittest.main() +if __name__ == '__main__': + unittest.main()