Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitb79f5de

Browse files
committed
fix(certs): limit=0 is invalid in DRF 3.4
encode/django-rest-framework#4194
1 parent4db0fe3 commitb79f5de

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

‎tests/certs_test.go‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -180,14 +180,17 @@ var _ = Describe("deis certs", func() {
180180
Specify("that user can limit the number of certs returned by certs:list",func() {
181181
randCertRegExp:=`\d{0,9}-cert`
182182

183-
sess,err:=cmd.Start("deis certs:list -l 0",&user)
184-
Eventually(sess).Should(Say("No certs"))
183+
sess,err=cmd.Start("deis certs:list --limit=1",&user)
184+
Eventually(sess).Should(Say(randCertRegExp))
185+
Eventually(sess).Should(Not(Say(randCertRegExp)))
185186
Expect(err).NotTo(HaveOccurred())
186187
Eventually(sess).Should(Exit(0))
187188

188-
sess,err=cmd.Start("deis certs:list --limit=1",&user)
189+
// limit=0 is invalid as of DRF 3.4
190+
// https://github.com/tomchristie/django-rest-framework/pull/4194
191+
sess,err=cmd.Start("deis certs:list --limit=0",&user)
192+
Eventually(sess).Should(Say(randCertRegExp))
189193
Eventually(sess).Should(Say(randCertRegExp))
190-
Eventually(sess).Should(Not(Say(randCertRegExp)))
191194
Expect(err).NotTo(HaveOccurred())
192195
Eventually(sess).Should(Exit(0))
193196

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp