add env vars and conftest

This commit is contained in:
Florin Barbu 2024-06-03 22:24:35 +03:00
parent 72785d05ee
commit 198c7083b3
No known key found for this signature in database
GPG Key ID: 593D6DBC6D9E5095
3 changed files with 8 additions and 9 deletions

View File

@ -13,23 +13,25 @@ python -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
pre-commit install
(optional) Overwrite default vars from src/env_vars.py via cli env vars or by adding a .env file
pytest
```
## CI
- Test runs via github actions
- TBD
<!-- - [Allure Test Reports](https://waku-org.github.io/waku-interop-tests/3/) are published via github pages -->
<!-- - [Allure Test Reports](https://status-im.github.io/status-cli-tests/19/) are published via github pages -->
## License
Licensed and distributed under either of
- MIT license: [LICENSE-MIT](https://github.com/waku-org/js-waku/blob/master/LICENSE-MIT) or http://opensource.org/licenses/MIT
- MIT license: [LICENSE-MIT](https://github.com/status-im/status-cli-tests/blob/master/LICENSE-MIT) or http://opensource.org/licenses/MIT
or
- Apache License, Version 2.0, ([LICENSE-APACHE-v2](https://github.com/waku-org/js-waku/blob/master/LICENSE-APACHE-v2) or http://www.apache.org/licenses/LICENSE-2.0)
- Apache License, Version 2.0, ([LICENSE-APACHE-v2](https://github.com/status-im/status-cli-tests/blob/master/LICENSE-APACHE-v2) or http://www.apache.org/licenses/LICENSE-2.0)
at your option. These files may not be copied, modified, or distributed except according to those terms.

View File

@ -7,14 +7,11 @@ cfgv==3.4.0
charset-normalizer==3.3.2
click==8.1.7
distlib==0.3.8
docker==7.0.0
execnet==2.0.2
filelock==3.13.1
identify==2.5.33
idna==3.7
iniconfig==2.0.0
marshmallow==3.20.1
marshmallow-dataclass==8.6.0
mypy-extensions==1.0.0
nodeenv==1.8.0
packaging==23.2

View File

@ -15,9 +15,9 @@ class TestNodes(StepsCommon):
# Send messages from Charlie to Alice and from Alice to Charlie
for i in range(num_messages):
timestamp_charlie, message_charlie = self.send_message_with_timestamp(self.node_charlie, self.alice_pubkey, f"message_from_charlie_{i}")
sleep(10)
sleep(2)
timestamp_alice, message_alice = self.send_message_with_timestamp(self.node_alice, self.charlie_pubkey, f"message_from_alice_{i}")
sleep(10)
sleep(2)
messages.append((timestamp_charlie, message_charlie, "charlie"))
messages.append((timestamp_alice, message_alice, "alice"))