From ca235a08d6253b137b921adee280022f67517ebe Mon Sep 17 00:00:00 2001 From: "Antoine R. Dumont (@ardumont)" <antoine.romain.dumont@gmail.com> Date: Tue, 24 May 2016 16:51:37 +0200 Subject: [PATCH] d/control: Ignore filesystem tests --- debian/rules | 2 +- swh/model/tests/test_git.py | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/debian/rules b/debian/rules index 4eb6368d..3e125f64 100755 --- a/debian/rules +++ b/debian/rules @@ -7,5 +7,5 @@ export PYBUILD_NAME=swh-model override_dh_auto_test: PYBUILD_SYSTEM=custom \ - PYBUILD_TEST_ARGS="python{version} -m nose swh -sva '!db'" \ + PYBUILD_TEST_ARGS="python{version} -m nose swh -sva '!db,!fs'" \ dh_auto_test diff --git a/swh/model/tests/test_git.py b/swh/model/tests/test_git.py index 3ed3ff34..4b944963 100644 --- a/swh/model/tests/test_git.py +++ b/swh/model/tests/test_git.py @@ -9,6 +9,7 @@ import subprocess import tempfile import unittest +from nose.plugins.attrib import attr from nose.tools import istest from swh.model import git @@ -137,8 +138,10 @@ blah self.assertEqual(checksum, self.checksums['tag_sha1_git']) +@attr('fs') class GitHashWalkArborescenceTree(unittest.TestCase): - """Root class to ease walk and git hash testing without side-effecty problems. + """Root class to ease walk and git hash testing without side-effecty + problems. """ def setUp(self): @@ -512,7 +515,8 @@ def ignore_svn_folder(dirpath): return b'.svn' not in dirpath -class GitHashUpdateRealUseCase(GitHashWalkArborescenceTree): +@attr('fs') +class GitHashUpdateRealUseCase(unittest.TestCase): """Test `walk and git hash only on modified fs` functions. """ -- GitLab