Skip to content

Commit d187555

Browse files
BrewTestBotchenrui333
authored andcommitted
wikibase-cli 18.3.0
wikibase-cli: update test Signed-off-by: Rui Chen <[email protected]>
1 parent 214e295 commit d187555

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

Formula/w/wikibase-cli.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
class WikibaseCli < Formula
22
desc "Command-line interface to Wikibase"
33
homepage "https://github.com/maxlath/wikibase-cli"
4-
url "https://registry.npmjs.org/wikibase-cli/-/wikibase-cli-18.2.2.tgz"
5-
sha256 "7745aa0e89506fe13502ee094dba848ccdf935df16e20a693a97162382e3fbeb"
4+
url "https://registry.npmjs.org/wikibase-cli/-/wikibase-cli-18.3.0.tgz"
5+
sha256 "40a3d289e43d28caacc72bfa54f671037292b6a5c103bab33e9355d1fa6e38c1"
66
license "MIT"
77

88
bottle do
@@ -22,6 +22,13 @@ def install
2222
end
2323

2424
test do
25+
config_file = testpath/".wikibase-cli.json"
26+
config_file.write "{\"instance\":\"https://www.wikidata.org\"}"
27+
28+
ENV["WB_CONFIG"] = config_file
29+
2530
assert_equal "human", shell_output("#{bin}/wd label Q5 --lang en").strip
31+
32+
assert_match version.to_s, shell_output("#{bin}/wd --version")
2633
end
2734
end

0 commit comments

Comments
 (0)