Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
maiksprenger committed Jul 8, 2015
1 parent 2f3edba commit 7fbc18f
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions tests/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
# We use get_config() instead of adyen_config because throughout
# the tests, we repeatedly change the Django settings.
from adyen.config import get_config, AbstractAdyenConfig
from adyen.settings_config import FromSettingsConfig


@override_settings(
Expand All @@ -17,12 +18,12 @@
)
class FromSettingsTestCase(TestCase):
"""
This test case tests the FromSettings confic class, which just fetches its
This test case tests the FromSettings config class, which just fetches its
values from the Django settings.
"""

def test_is_default(self):
assert 'FromSettingsConfig' in get_config().__class__.__name__
assert isinstance(get_config(), FromSettingsConfig)

def test_value_passing_works(self):
assert get_config().get_action_url(None) == 'foo'
Expand Down Expand Up @@ -51,7 +52,7 @@ class CustomConfigClassTestCase(TestCase):
"""

def test_class_gets_picked_up(self):
assert 'DummyConfigClass' in get_config().__class__.__name__
assert isinstance(get_config(), DummyConfigClass)

@override_settings(ADYEN_ACTION_URL='bar')
def test_settings_ignored(self):
Expand Down

0 comments on commit 7fbc18f

Please sign in to comment.