[biplan] handle summer holiday in tests
This commit is contained in:
parent
f4ca4e2f69
commit
0d38829727
1 changed files with 3 additions and 1 deletions
|
|
@ -17,7 +17,7 @@
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
from nose.plugins.skip import SkipTest
|
||||||
from weboob.tools.test import BackendTest
|
from weboob.tools.test import BackendTest
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
|
|
||||||
|
|
@ -26,6 +26,8 @@ class BiplanTest(BackendTest):
|
||||||
BACKEND = 'biplan'
|
BACKEND = 'biplan'
|
||||||
|
|
||||||
def test_biplan_list(self):
|
def test_biplan_list(self):
|
||||||
|
if datetime.now() > datetime(datetime.now().year, 7, 14) and datetime.now() < datetime(datetime.now().year, 9, 15):
|
||||||
|
raise SkipTest("Fermeture estivale")
|
||||||
l = list(self.backend.list_events(datetime.now()))
|
l = list(self.backend.list_events(datetime.now()))
|
||||||
assert len(l)
|
assert len(l)
|
||||||
event = self.backend.get_event(l[0].id)
|
event = self.backend.get_event(l[0].id)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue