Skip to content
This repository has been archived by the owner on Mar 22, 2024. It is now read-only.

Commit

Permalink
Improve docs and testing clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckierDodge committed Feb 9, 2024
1 parent 84e4459 commit beb0f79
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ python src/webcam_rest_node.py --host 0.0.0.0 --port 2000
3. Open the `.env` file and ensure that all values are set and correct.
1. Check that the `USER_ID` and `GROUP_ID` are correct, as these ensure correct file permissions (in most cases, they should match your user's UID and GID)
2. Check that the `WEI_DATA_DIR` and `REDIS_DIR` directories exist and have the appropriate permissions
3. The `DEVICE` variable can be used to determine which camera device is used by the module

```bash
# Build and run just the module
Expand Down
1 change: 1 addition & 0 deletions example.env
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Note: all paths are relative to the docker compose file
USER_ID=
GROUP_ID=
DEVICE=/dev/video0
PROJECT_PATH=
PROJECT_VERSION=1.2.0
WEI_DATA_DIR=~/.wei
Expand Down
2 changes: 1 addition & 1 deletion tests/test_module.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class TestWebcamModule(TestWEI_Base):

def test_take_picture_action(self):
"""Tests that the take_picture action works"""
exp = ExperimentClient(self.server_host, self.server_port, "")
exp = ExperimentClient(self.server_host, self.server_port, "webcam_module_test")

result = exp.start_run(
Path(self.root_dir) / Path("tests/workflow_defs/test_workflow.yaml"),
Expand Down

0 comments on commit beb0f79

Please sign in to comment.