[Dayone] Skip failing tests on Travis

Travis sets the timezone to UTC, which causes many tests to fail
This commit is contained in:
MinchinWeb 2019-11-13 18:26:13 -07:00
parent ea594e5998
commit ad5d3a7856
2 changed files with 17 additions and 0 deletions

View file

@ -1,5 +1,7 @@
Feature: Dayone specific implementation details. Feature: Dayone specific implementation details.
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Loading a DayOne Journal Scenario: Loading a DayOne Journal
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl -from 'feb 2013'" When we run "jrnl -from 'feb 2013'"
@ -13,6 +15,8 @@ Feature: Dayone specific implementation details.
2013-07-17 11:38 This entry is starred! 2013-07-17 11:38 This entry is starred!
""" """
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Entries without timezone information will be interpreted as in the current timezone Scenario: Entries without timezone information will be interpreted as in the current timezone
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl -until 'feb 2013'" When we run "jrnl -until 'feb 2013'"
@ -29,6 +33,8 @@ Feature: Dayone specific implementation details.
1979-05-01 09:00 Being born hurts. 1979-05-01 09:00 Being born hurts.
""" """
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Loading tags from a DayOne Journal Scenario: Loading tags from a DayOne Journal
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl --tags" When we run "jrnl --tags"
@ -38,6 +44,8 @@ Feature: Dayone specific implementation details.
@play : 1 @play : 1
""" """
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Saving tags from a DayOne Journal Scenario: Saving tags from a DayOne Journal
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl A hard day at @work" When we run "jrnl A hard day at @work"
@ -48,6 +56,8 @@ Feature: Dayone specific implementation details.
@play : 1 @play : 1
""" """
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Filtering by tags from a DayOne Journal Scenario: Filtering by tags from a DayOne Journal
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl @work" When we run "jrnl @work"
@ -55,6 +65,9 @@ Feature: Dayone specific implementation details.
""" """
2013-05-17 11:39 This entry has tags! 2013-05-17 11:39 This entry has tags!
""" """
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Exporting dayone to json Scenario: Exporting dayone to json
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl --export json" When we run "jrnl --export json"

View file

@ -1,5 +1,7 @@
Feature: Zapped Dayone bugs stay dead! Feature: Zapped Dayone bugs stay dead!
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: DayOne tag searching should work with tags containing a mixture of upper and lower case. Scenario: DayOne tag searching should work with tags containing a mixture of upper and lower case.
# https://github.com/jrnl-org/jrnl/issues/354 # https://github.com/jrnl-org/jrnl/issues/354
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
@ -9,6 +11,8 @@ Feature: Zapped Dayone bugs stay dead!
2013-05-17 11:39 This entry has tags! 2013-05-17 11:39 This entry has tags!
""" """
# fails when system time is UTC (as on Travis-CI)
@skip
Scenario: Title with an embedded period on DayOne journal Scenario: Title with an embedded period on DayOne journal
Given we use the config "dayone.yaml" Given we use the config "dayone.yaml"
When we run "jrnl 04-24-2014: "Ran 6.2 miles today in 1:02:03. I'm feeling sore because I forgot to stretch."" When we run "jrnl 04-24-2014: "Ran 6.2 miles today in 1:02:03. I'm feeling sore because I forgot to stretch.""