GitLab is used only for code review, issue tracking and project management. Canonical locations for source code are still https://gitweb.torproject.org/ https://git.torproject.org/ and git-rw.torproject.org.

Commit 71bce126 authored by Alex Catarineu's avatar Alex Catarineu

Cleanup tests python imports

parent 9eccab9c
from marionette_driver import By, Wait from marionette_driver import Wait
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(testsuite.TorBrowserTest): class Test(testsuite.TorBrowserTest):
......
...@@ -4,10 +4,6 @@ ...@@ -4,10 +4,6 @@
# This test has been suggested in the iSEC partners' report: # This test has been suggested in the iSEC partners' report:
# https://blog.torproject.org/blog/isec-partners-conducts-tor-browser-hardening-study # https://blog.torproject.org/blog/isec-partners-conducts-tor-browser-hardening-study
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(testsuite.TorBrowserTest): class Test(testsuite.TorBrowserTest):
......
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
# expected values for navigation properties # expected values for navigation properties
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
...@@ -3,10 +3,6 @@ ...@@ -3,10 +3,6 @@
# Tor Browser. Setting |dom.enable_performance| to |false| and testing that has # Tor Browser. Setting |dom.enable_performance| to |false| and testing that has
# been not sufficient. See bug 13186 for further details. # been not sufficient. See bug 13186 for further details.
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(testsuite.TorBrowserTest): class Test(testsuite.TorBrowserTest):
......
# https://trac.torproject.org/projects/tor/ticket/13053 # https://trac.torproject.org/projects/tor/ticket/13053
from marionette_driver import By from marionette_driver.errors import NoSuchElementException
from marionette_driver.errors import MarionetteException, NoSuchElementException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_driver import By, Wait from marionette_driver import Wait
from marionette_driver.errors import MarionetteException, NoSuchElementException, TimeoutException
from marionette_driver.legacy_actions import Actions from marionette_driver.legacy_actions import Actions
from marionette_harness import MarionetteTestCase, WindowManagerMixin from marionette_harness import MarionetteTestCase, WindowManagerMixin
import time
class Test(WindowManagerMixin, MarionetteTestCase): class Test(WindowManagerMixin, MarionetteTestCase):
def get_url(self): def get_url(self):
with self.marionette.using_context('content'): with self.marionette.using_context('content'):
......
from marionette_driver import By, Wait from marionette_driver import Wait
from marionette_driver.errors import MarionetteException, NoSuchElementException, TimeoutException
from marionette_driver.legacy_actions import Actions
from marionette_harness import MarionetteTestCase, WindowManagerMixin from marionette_harness import MarionetteTestCase, WindowManagerMixin
import testsuite
from stem.control import Controller from stem.control import Controller
from stem.process import launch_tor_with_config from stem.process import launch_tor_with_config
from urlparse import urlparse from urlparse import urlparse
from tempfile import mkdtemp from tempfile import mkdtemp
import shutil import shutil
import os import os
import base64 import base64
import time import time
import testsuite
class Test(WindowManagerMixin, MarionetteTestCase): class Test(WindowManagerMixin, MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_driver import By, Wait from marionette_driver import Wait
from marionette_driver.errors import MarionetteException, NoSuchElementException, TimeoutException from marionette_driver.errors import NoSuchElementException, TimeoutException
from marionette_harness import MarionetteTestCase, WindowManagerMixin from marionette_harness import MarionetteTestCase, WindowManagerMixin
class Test(WindowManagerMixin, MarionetteTestCase): class Test(WindowManagerMixin, MarionetteTestCase):
# To be investigated in #40007: # To be investigated in #40007:
# In 81, marionette.get_url() sometimes fails with: # In 81, marionette.get_url() sometimes fails with:
......
from marionette_driver import By, Wait from marionette_driver import Wait
from marionette_driver.errors import MarionetteException, NoSuchElementException, TimeoutException
from marionette_driver.legacy_actions import Actions
from marionette_harness import MarionetteTestCase, WindowManagerMixin from marionette_harness import MarionetteTestCase, WindowManagerMixin
import testsuite
from stem.control import Controller from stem.control import Controller
from urlparse import urlparse from urlparse import urlparse
import time import time
import testsuite
class OnionFixturesMixin(object): class OnionFixturesMixin(object):
def setUp(self): def setUp(self):
......
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite
import json import json
import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
# Tor Browser. Setting |dom.enable_resource_timing| to |false| and testing that # Tor Browser. Setting |dom.enable_resource_timing| to |false| and testing that
# might not be sufficient. # might not be sufficient.
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
...@@ -6,14 +6,9 @@ ...@@ -6,14 +6,9 @@
# case while the search engines are still not properly ordered. Rather, we # case while the search engines are still not properly ordered. Rather, we
# check the entries in the search box directly. # check the entries in the search box directly.
from marionette_driver import By, Wait
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_driver import By, Wait from marionette_driver import Wait
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def test_security_level_ui(self): def test_security_level_ui(self):
custom_pref = 'javascript.options.wasm' custom_pref = 'javascript.options.wasm'
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
def setUp(self): def setUp(self):
......
from marionette_driver.errors import MarionetteException, JavascriptException, NoSuchElementException from marionette_driver.errors import JavascriptException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
import testsuite import testsuite
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
...@@ -3,9 +3,6 @@ ...@@ -3,9 +3,6 @@
# Tor Browser. Setting |dom.enable_user_timing| to |false| and testing that # Tor Browser. Setting |dom.enable_user_timing| to |false| and testing that
# might not be sufficient. # might not be sufficient.
from marionette_driver import By
from marionette_driver.errors import MarionetteException
from marionette_harness import MarionetteTestCase from marionette_harness import MarionetteTestCase
class Test(MarionetteTestCase): class Test(MarionetteTestCase):
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment