Skip to content

Commit c59f344

Browse files
committed
fixed tests for 'provides_includes'
1 parent 585f62c commit c59f344

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

Diff for: test/test_lib.py

+3-6
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,18 @@ 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]
6259

6360
# Install something we can list without provides_includes field given in library.properties
64-
result = run_command("lib install Braccio@2.0.4")
61+
result = run_command("lib install Arduino_APDS9960@1.0.3")
6562
assert result.ok
6663
# Look at the JSON output
67-
result = run_command("lib list Braccio --format json")
64+
result = run_command("lib list Arduino_APDS9960 --format json")
6865
assert result.ok
6966
assert "" == result.stderr
7067
data = json.loads(result.stdout)
7168
assert 1 == len(data)
7269
# be sure data contains the correct provides_includes field
73-
assert "Braccio.h" == data[0]["library"]["provides_includes"][0]
70+
assert "Arduino_APDS9960.h" == data[0]["library"]["provides_includes"][0]
7471

7572

7673
def test_install(run_command):

0 commit comments

Comments
 (0)