Reorganise tests into unit and functional categories.
Tox (and hence Travis) only runs unit tests Functional tests can be run manually, with the default Python version
This commit is contained in:
parent
9319f903ac
commit
d3a4036817
15 changed files with 31 additions and 27 deletions
20
tests/functional/api_versions/test_v2.py
Normal file
20
tests/functional/api_versions/test_v2.py
Normal file
|
@ -0,0 +1,20 @@
|
|||
try:
|
||||
import unittest2 as unittest
|
||||
except ImportError:
|
||||
import unittest
|
||||
from tests.functional import test_base, test_albums, test_photos, test_tags
|
||||
|
||||
@unittest.skipIf(test_base.get_test_server_api() < 2,
|
||||
"Don't test future API versions")
|
||||
class TestAlbumsV2(test_albums.TestAlbums):
|
||||
api_version = 2
|
||||
|
||||
@unittest.skipIf(test_base.get_test_server_api() < 2,
|
||||
"Don't test future API versions")
|
||||
class TestPhotosV2(test_photos.TestPhotos):
|
||||
api_version = 2
|
||||
|
||||
@unittest.skipIf(test_base.get_test_server_api() < 2,
|
||||
"Don't test future API versions")
|
||||
class TestTagsV2(test_tags.TestTags):
|
||||
api_version = 2
|
Loading…
Add table
Add a link
Reference in a new issue