Skip to content

Commit

Permalink
rename TestBase to TestCaseApi to avoid doublons
Browse files Browse the repository at this point in the history
  • Loading branch information
aerialls committed Jan 31, 2019
1 parent db53bfa commit a3f6745
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion tests/base.py → tests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import synology_srm


class TestBase(unittest.TestCase):
class TestCaseApi(unittest.TestCase):
def setUp(self):
"""Set up things to be run when tests are started."""
self.client = synology_srm.Client(
Expand Down
4 changes: 2 additions & 2 deletions tests/test_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import requests_mock

from tests.base import TestBase
from tests.api import TestCaseApi


class TestBase(TestBase):
class TestBase(TestCaseApi):

@requests_mock.Mocker()
def test_info(self, m):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import requests_mock

from tests.base import TestBase
from tests.api import TestCaseApi


class TestCore(TestBase):
class TestCore(TestCaseApi):

@requests_mock.Mocker()
def test_system_utilization(self, m):
Expand Down
4 changes: 2 additions & 2 deletions tests/test_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import requests_mock

from tests.base import TestBase
from tests.api import TestCaseApi
from synology_srm.http import (
SynologyHttpException,
SynologyAccountDisabledException,
Expand All @@ -11,7 +11,7 @@
)


class TestLogin(TestBase):
class TestLogin(TestCaseApi):

def test_initial_state(self):
self.assertIs(self.client.http.sid, None)
Expand Down
4 changes: 2 additions & 2 deletions tests/test_mesh.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

import requests_mock

from tests.base import TestBase
from tests.api import TestCaseApi


class TestMesh(TestBase):
class TestMesh(TestCaseApi):

@requests_mock.Mocker()
def test_network_wifidevice(self, m):
Expand Down

0 comments on commit a3f6745

Please sign in to comment.