Skip to content

Commit

Permalink
test: fix failing doc tests
Browse files Browse the repository at this point in the history
  • Loading branch information
angrybayblade committed Jun 22, 2022
1 parent 72c3f26 commit eeb702c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/test_docs/test_bash_yaml/md_files/bash-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ pip install open-aea[all]
svn checkout https://github.com/valory-xyz/open-aea/tags/v1.10.0/packages packages
```


``` bash
sudo apt-get install python3.7-dev
```
Expand All @@ -66,7 +65,7 @@ v1.7.0
AEA configurations successfully initialized: {'author': 'fetchai'}
```
``` bash
aea fetch open_aea/my_first_aea:0.1.0 --local
aea fetch open_aea/my_first_aea:0.1.0:QmbyFaoHWikC8dHcpdTVboxVnkXX2vMgch4UUXmwCfJhRu --remote
cd my_first_aea
```
``` bash
Expand Down
2 changes: 1 addition & 1 deletion tests/test_docs/test_quickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def test_correct_echo_string():
"""Test the echo string in the quickstart is using the correct protocol specification id."""
file_path = Path(ROOT_DIR, "docs", "quickstart.md")
bash_code_blocks = extract_code_blocks(filepath=file_path, filter_="bash")
echo_bloc = bash_code_blocks[18]
echo_bloc = bash_code_blocks[17]
default_protocol_spec_id = echo_bloc.split(",")[2]
assert (
str(DefaultMessage.protocol_specification_id) == default_protocol_spec_id
Expand Down

0 comments on commit eeb702c

Please sign in to comment.