Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

renamed djangoclient to django.

  • Loading branch information...
commit 8a67fc6b9fa25129b95d86e38be3a9ee1f6c2c19 1 parent 4a1f881
Andrews Medina andrewsmedina authored
2  splinter/browser.py
View
@@ -27,7 +27,7 @@
try:
import django # noqa
from splinter.driver.djangoclient import DjangoClient
- _DRIVERS['djangoclient'] = DjangoClient
+ _DRIVERS['django'] = DjangoClient
except ImportError:
pass
2  splinter/driver/djangoclient.py
View
@@ -52,7 +52,7 @@ def __eq__(self, other_object):
class DjangoClient(DriverAPI):
- driver_name = "djangoclient"
+ driver_name = "django"
def __init__(self, user_agent=None, wait_time=2):
from django.test.client import Client
18 tests/test_djangoclient.py
View
@@ -20,7 +20,7 @@ class DjangoClientDriverTest(BaseBrowserTests, unittest.TestCase):
@classmethod
def setUpClass(cls):
- cls.browser = Browser('djangoclient', wait_time=0.1)
+ cls.browser = Browser('django', wait_time=0.1)
def setUp(self):
self.browser.visit(EXAMPLE_APP)
@@ -30,7 +30,7 @@ def tearDownClass(self):
self.browser.quit()
def test_should_support_with_statement(self):
- with Browser('djangoclient') as internet:
+ with Browser('django') as internet:
self.assertIsNotNone(internet)
def test_attach_file(self):
@@ -48,7 +48,7 @@ def test_attach_file(self):
def test_forward_to_none_page(self):
"should not fail when trying to forward to none"
- browser = Browser('djangoclient')
+ browser = Browser('django')
browser.visit(EXAMPLE_APP)
browser.forward()
self.assertEqual(EXAMPLE_APP, browser.url)
@@ -61,7 +61,7 @@ def test_cant_switch_to_frame(self):
self.fail()
e = cm.exception
- self.assertEqual("djangoclient doesn't support frames.", e.args[0])
+ self.assertEqual("django doesn't support frames.", e.args[0])
def test_simple_type(self):
"""
@@ -73,7 +73,7 @@ def test_simple_type(self):
def test_simple_type_on_element(self):
"""
- djangoclient won't support type method
+ django won't support type method
because it doesn't interact with JavaScript
"""
with self.assertRaises(NotImplementedError):
@@ -81,7 +81,7 @@ def test_simple_type_on_element(self):
def test_slowly_typing(self):
"""
- djangoclient won't support type method
+ django won't support type method
because it doesn't interact with JavaScript
"""
with self.assertRaises(NotImplementedError):
@@ -89,7 +89,7 @@ def test_slowly_typing(self):
def test_slowly_typing_on_element(self):
"""
- djangoclient won't support type method
+ django won't support type method
on element because it doesn't interac with JavaScript
"""
with self.assertRaises(NotImplementedError):
@@ -97,12 +97,12 @@ def test_slowly_typing_on_element(self):
query.type('with type method', slowly=True)
def test_cant_mouseover(self):
- "djangoclient should not be able to put the mouse over the element"
+ "django should not be able to put the mouse over the element"
with self.assertRaises(NotImplementedError):
self.browser.find_by_css('#visible').mouse_over()
def test_cant_mouseout(self):
- "djangoclient should not be able to mouse out of an element"
+ "django should not be able to mouse out of an element"
with self.assertRaises(NotImplementedError):
self.browser.find_by_css('#visible').mouse_out()
Please sign in to comment.
Something went wrong with that request. Please try again.