~ubuntu-branches/debian/sid/lexicon/sid

« back to all changes in this revision

Viewing changes to tests/providers/test_zonomi.py

  • Committer: Package Import Robot
  • Author(s): Ana Custura
  • Date: 2018-03-02 22:36:08 UTC
  • Revision ID: package-import@ubuntu.com-20180302223608-4e2sghral3uifgq7
Tags: upstream-2.1.21
ImportĀ upstreamĀ versionĀ 2.1.21

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
from lexicon.providers.zonomi import Provider
 
2
from integration_tests import IntegrationTests
 
3
from unittest import TestCase
 
4
import pytest
 
5
 
 
6
# Hook into testing framework by inheriting unittest.TestCase and reuse
 
7
# the tests which *each and every* implementation of the interface must
 
8
# pass, by inheritance from integration_tests.IntegrationTests
 
9
class ZonomiProviderTests(TestCase, IntegrationTests):
 
10
 
 
11
    Provider = Provider
 
12
    provider_name = 'zonomi'
 
13
    domain = 'pcekper.com.ar'
 
14
        
 
15
    def _test_engine_overrides(self):
 
16
        overrides = super(ZonomiProviderTests, self)._test_engine_overrides()
 
17
        overrides.update({'api_endpoint': 'https://zonomi.com/app'})
 
18
        return overrides
 
19
    
 
20
    def _filter_query_parameters(self):
 
21
        return ['api_key']
 
22
 
 
23
    # TODO: this should be enabled
 
24
    @pytest.mark.skip(reason="The record identifier is based on the name, this needs disabled")
 
25
    def test_Provider_when_calling_update_record_should_modify_record_name_specified(self):
 
26
        return
 
27