forked from openlp/openlp
cleaning tests
This commit is contained in:
parent
2aeaa24871
commit
7d47010304
@ -56,12 +56,6 @@ class TestRemoteTab(TestCase):
|
||||
"""
|
||||
Test the get_ip_address function with ZERO_URL
|
||||
"""
|
||||
# GIVEN: A mocked location
|
||||
with patch('openlp.core.utils.applocation.Settings') as mocked_class, \
|
||||
patch('openlp.core.utils.AppLocation.get_directory') as mocked_get_directory, \
|
||||
patch('openlp.core.utils.applocation.check_directory_exists') as mocked_check_directory_exists, \
|
||||
patch('openlp.core.utils.applocation.os') as mocked_os:
|
||||
# GIVEN: A mocked out Settings class and a mocked out AppLocation.get_directory()
|
||||
# WHEN: the default ip address is given
|
||||
ip_address = self.form.get_ip_address(ZERO_URL)
|
||||
# THEN: the default ip address will be returned
|
||||
@ -72,10 +66,6 @@ class TestRemoteTab(TestCase):
|
||||
Test the get_ip_address function with given ip address
|
||||
"""
|
||||
# GIVEN: A mocked location
|
||||
with patch('openlp.core.utils.applocation.Settings') as mocked_class, \
|
||||
patch('openlp.core.utils.AppLocation.get_directory') as mocked_get_directory, \
|
||||
patch('openlp.core.utils.applocation.check_directory_exists') as mocked_check_directory_exists, \
|
||||
patch('openlp.core.utils.applocation.os') as mocked_os:
|
||||
# GIVEN: An ip address
|
||||
given_ip = '192.168.1.1'
|
||||
# WHEN: the default ip address is given
|
||||
|
Loading…
Reference in New Issue
Block a user