Skip to content

Commit

Permalink
Try again
Browse files Browse the repository at this point in the history
  • Loading branch information
eodolphi committed Aug 10, 2022
1 parent 2465e8e commit 29cc6e0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ install:
before_script:
- flake8 .
script:
- python -m coverage run --parallel-mode --source=bluebottle manage.py test --keepdb
- python -m coverage run --parallel-mode --source=bluebottle manage.py test --keepdb bluebottle.time_based.tests.test_periodic_tasks.RecurringPeriodActivitySlotPeriodicTest
notifications:
slack:
secure: TOveMBh9HePYKWuGTrWF+hTXzxGZvbVsa3KU0sB1yv6qkcixb5/ggvmkTeRddYEd/zyWyMenicFsrXVBgsP0SmbNgke6kq5+EN0U5oJWse998lvCVCpwmJQMdwDHvYsOtbFEOppQrbRK4vmH8qibx3x2YVg+u+61ePHvWYF9z6U=
Expand Down
8 changes: 6 additions & 2 deletions bluebottle/time_based/tests/test_periodic_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@
DateSlotParticipantFactory, TeamSlotFactory
)

import logging

logger = logging.getLogger(__name__)


class TimeBasedActivityPeriodicTasksTestCase():

Expand Down Expand Up @@ -582,9 +586,9 @@ def run_task(self, when):
def test_create_new_slot(self):
self.assertEqual(len(self.activity.slots.all()), 1)

print('Running tasks')
logger.error('Running tasks')
self.run_task(now() + timedelta(days=7))
print('Running tasks again')
logger.error('Running tasks again')
self.run_task(now() + timedelta(days=7))
self.assertEqual(len(self.activity.slots.all()), 2)

Expand Down

0 comments on commit 29cc6e0

Please sign in to comment.