Commit 4a22e687 authored by Bezleputh's avatar Bezleputh Committed by Romain Bignon

[hybride] handle summer holyday in tests

parent 73cd8762
......@@ -17,15 +17,17 @@
# You should have received a copy of the GNU Affero General Public License
# along with weboob. If not, see <http://www.gnu.org/licenses/>.
from nose.plugins.skip import SkipTest
from weboob.tools.test import BackendTest
from datetime import datetime
from datetime import datetime, date
class HybrideTest(BackendTest):
BACKEND = 'hybride'
def test_hybride_list(self):
if datetime.now() > datetime(datetime.now().year, 6, 30) and datetime.now() < datetime(datetime.now().year, 9, 15):
raise SkipTest("Fermeture estivale")
l = list(self.backend.list_events(datetime.now()))
assert len(l)
event = self.backend.get_event(l[0].id)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment