Skip to content

Commit

Permalink
Fixing the incorrect duration values in the WPS tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
pacesm committed Jul 11, 2017
1 parent efd4a7a commit 67758d4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions eoxserver/services/ows/wps/test_allowed_values.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,18 +188,18 @@ def setUp(self):

class TestAllowedEnumDuration(TestCase, BaseTestMixin):
def setUp(self):
vlist = ['P1Y', 'P26DT1M', 'P25M16S']
vlist = ['P1Y', 'P26DT1M', 'PT25M16S']
self.domain = AllowedEnum(vlist, dtype=Duration)
self.accepted = [vlist[1], Duration.parse(vlist[0])]
self.rejected = [Duration.parse('P7D15H8M')]
self.rejected = [Duration.parse('P7DT15H8M')]


class TestAllowedEnumDuration2(TestCase, BaseTestMixin):
def setUp(self):
vlist = ['P1Y', 'P26DT1M', 'P25M16S']
vlist = ['P1Y', 'P26DT1M', 'PT25M16S']
self.domain = AllowedEnum(vlist, dtype=timedelta)
self.accepted = [vlist[1], Duration.parse(vlist[0])]
self.rejected = [Duration.parse('P7D15H8M')]
self.rejected = [Duration.parse('P7DT15H8M')]

#------------------------------------------------------------------------------

Expand Down Expand Up @@ -350,7 +350,7 @@ def setUp(self):
'P1M0DT30M',
]
self.rejected = [
Duration.parse('-P2D18H'),
Duration.parse('-P2DT18H'),
'P1Y',
]

Expand Down

0 comments on commit 67758d4

Please sign in to comment.