aboutsummaryrefslogtreecommitdiffstats
path: root/tests/test_scheduling.py
diff options
context:
space:
mode:
authorLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:17 -0300
committerLibravatarAgustin Henze <tin@sluc.org.ar>2014-10-21 10:33:17 -0300
commit2d14c4b384c7000e264674a92b16e010a510ac05 (patch)
tree7676db09f338e46e053170b1c9f7594120b9d434 /tests/test_scheduling.py
parent2d2e97ac540c94e15ac5eccc7d32f3dfb3eea1bc (diff)
parent5ec02211214350ee558fd9f6bb052264fd24f75e (diff)
Merge tag 'upstream/7.1.0'
Upstream version 7.1.0
Diffstat (limited to 'tests/test_scheduling.py')
-rw-r--r--tests/test_scheduling.py8
1 files changed, 1 insertions, 7 deletions
diff --git a/tests/test_scheduling.py b/tests/test_scheduling.py
index ae1cf92..fddb4ff 100644
--- a/tests/test_scheduling.py
+++ b/tests/test_scheduling.py
@@ -5,9 +5,6 @@ import datetime
import locale
import os
import sys
-# This code is so you can run the samples without installing the package,
-# and should be before any import touching nikola, in any file under tests/
-sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..'))
import dateutil.parser
import dateutil.tz
@@ -46,10 +43,7 @@ class TestScheduling(BaseTestCase):
def test_get_date(self):
from nikola.plugins.command.new_post import get_date
- FMT = '%Y-%m-%d %H:%M:%S %Z'.format(
- locale.nl_langinfo(locale.D_FMT),
- locale.nl_langinfo(locale.T_FMT),
- )
+ FMT = '%Y-%m-%d %H:%M:%S %Z'
NOW = _NOW.strftime(FMT)
TODAY = dateutil.parser.parse(NOW)
RULE_TH = 'RRULE:FREQ=WEEKLY;BYDAY=TH'