Skip to content

Commit

Permalink
Add --offline test in tnimblerefresh.nim
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberTailor committed Dec 12, 2021
1 parent 4da351d commit 51bf22b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/tnimblerefresh.nim
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ import unittest, os, strutils
import testscommon

suite "nimble refresh":
test "cannot refresh in --offline mode":
let (output, exitCode) = execNimble(["--offline", "refresh"])
check exitCode != QuitSuccess
check output.contains("Cannot refresh package list in offline mode.")

test "can refresh with default urls":
let (output, exitCode) = execNimble(["refresh"])
checkpoint(output)
Expand Down

0 comments on commit 51bf22b

Please sign in to comment.