diff options
author | Steve Dower <steve.dower@python.org> | 2023-04-04 17:00:03 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-04 17:00:03 +0100 |
commit | fd1947ecfba589feebd48c1ebb60d1c01ee0a89d (patch) | |
tree | cbb4f8399f992f1f5b9ca18e09cfaa5234c95985 /Lib/test | |
parent | 89e6a3446184925ee7f17cd0d948c7784a88b8d7 (diff) | |
download | cpython-git-fd1947ecfba589feebd48c1ebb60d1c01ee0a89d.tar.gz |
bpo-44844: Enable detection of Microsoft Edge browser in webbrowser module (GH-29908)
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_webbrowser.py | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Lib/test/test_webbrowser.py b/Lib/test/test_webbrowser.py index 147a113c7f..2d695bc883 100644 --- a/Lib/test/test_webbrowser.py +++ b/Lib/test/test_webbrowser.py @@ -95,6 +95,31 @@ class ChromeCommandTest(CommandTestMixin, unittest.TestCase): arguments=[URL]) +class EdgeCommandTest(CommandTestMixin, unittest.TestCase): + + browser_class = webbrowser.Edge + + def test_open(self): + self._test('open', + options=[], + arguments=[URL]) + + def test_open_with_autoraise_false(self): + self._test('open', kw=dict(autoraise=False), + options=[], + arguments=[URL]) + + def test_open_new(self): + self._test('open_new', + options=['--new-window'], + arguments=[URL]) + + def test_open_new_tab(self): + self._test('open_new_tab', + options=[], + arguments=[URL]) + + class MozillaCommandTest(CommandTestMixin, unittest.TestCase): browser_class = webbrowser.Mozilla |