Skip to content

Commit

Permalink
conf: Use (hidden) .venv directory instead of venv
Browse files Browse the repository at this point in the history
  • Loading branch information
letam committed Jun 27, 2023
1 parent 6f62804 commit 073e23b
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

*.env

venv/
.venv/
__pycache__/

.DS_Store
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ A starter project for creating automated tests for websites and web applications
4. Create and activate python virtual environment for the project

```
python3 -m venv venv
source venv/bin/activate
python3 -m venv .venv
source .venv/bin/activate
```

5. Install project requirements
Expand Down Expand Up @@ -68,7 +68,7 @@ A starter project for creating automated tests for websites and web applications
**Remember to activate project's virtual environment in the project directory first:**

```
source venv/bin/activate
source .venv/bin/activate
```

**To list all test command options, execute:**
Expand Down
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Reference: https://docs.pytest.org/en/latest/reference.html#configuration-options

[pytest]
norecursedirs = *.egg .* _darcs build CVS dist node_modules venv {arch} tmp*
norecursedirs = *.egg .* _darcs build CVS dist node_modules venv {arch} tmp* .venv
2 changes: 1 addition & 1 deletion test.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh

source venv/bin/activate
source .venv/bin/activate

echo EXECUTING: pytest tests "$@"
pytest tests "$@"

0 comments on commit 073e23b

Please sign in to comment.