def setUp(self):
        settings.set('BASE_URL', 'http://localhost:9000')
        settings.set('REQUEST_CONNECTION_TIMEOUT', 0.5)
        self.client = ApiClient()

        self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        self.socket.bind(('', 9000))
Beispiel #2
0
    def setUp(self):
        settings.set('BASE_URL', 'http://localhost:9000')
        settings.set('REQUEST_CONNECTION_TIMEOUT', 0.5)
        self.client = ApiClient()

        self.socket = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
        self.socket.bind(('', 9000))
    def test_instance_settings(self):
        """Ensure that we can set and get instance settings"""

        settings.set('API_TOKEN', '1')
        self.assertEqual(settings.get('API_TOKEN'), '1')
Beispiel #4
0
    def test_instance_settings(self):
        """Ensure that we can set and get instance settings"""

        settings.set('API_TOKEN', '1')
        self.assertEqual(settings.get('API_TOKEN'), '1')