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

Commit ea3ec75

Browse files
committed
Added integration tests for 'provides_includes' field
1 parent 63634c7 commit ea3ec75

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

‎test/test_lib.py‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,21 @@ def test_list(run_command):
5656
assert 1 == len(data)
5757
# be sure data contains the available version
5858
assert "" != data[0]["release"]["version"]
59+
# be sure data contains the correct provides_includes field
60+
assert "ArduinoJson.h" == data[0]["library"]["provides_includes"][0]
61+
assert "ArduinoJson.hpp" == data[0]["library"]["provides_includes"][1]
5962

63+
# Install something we can list without provides_includes field given in library.properties
64+
result = run_command("lib install Braccio@2.0.4")
65+
assert result.ok
66+
# Look at the JSON output
67+
result = run_command("lib list Braccio --format json")
68+
assert result.ok
69+
assert "" == result.stderr
70+
data = json.loads(result.stdout)
71+
assert 1 == len(data)
72+
# be sure data contains the correct provides_includes field
73+
assert "Braccio.h" == data[0]["library"]["provides_includes"][0]
6074

6175
def test_install(run_command):
6276
libs = ['"AzureIoTProtocol_MQTT"', '"CMMC MQTT Connector"', '"WiFiNINA"']

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /