Skip to content

Commit

Permalink
ARGV
Browse files Browse the repository at this point in the history
  • Loading branch information
Dreamlinerm committed Aug 16, 2023
1 parent 977b280 commit 33445e5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -210,15 +210,15 @@ I primarily just develop in firefox and then copy the code into chrome and repla
To run the automated tests run:
1. ```npm run build```
2. copy the web-ext artifact into the normal folder and rename it to [email protected]
3. ```npm run test```
3. ```npm test```

Cli ARGS:
- none : all tests
- 'n': Netflix tests
- 'p': Prime Video tests
- 'd': Disney tests

```npm run test n p d```
```npm test n p d```
### setup

- insert your own firefox profile name to be logged into every platform in the ``test.js`` file.
Expand Down
6 changes: 3 additions & 3 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -312,18 +312,18 @@ def Disney_Credits():
["Profile", "❌", "➖", "➖"],
]

if len(sys.argv) == 0 or "p" in sys.argv:
if len(sys.argv) <= 1 or "p" in sys.argv:
print("Amazon Prime:")
Amazon_Ad()
Amazon_Prime()
Amazon_PaidContent()

if len(sys.argv) == 0 or "n" in sys.argv:
if len(sys.argv) <= 1 or "n" in sys.argv:
print("Netflix:")
Netflix_Profile()
Netflix_intro()

if len(sys.argv) == 0 or "d" in sys.argv:
if len(sys.argv) <= 1 or "d" in sys.argv:
print("Disney:")
Disney_Intro()
Disney_Credits()
Expand Down

0 comments on commit 33445e5

Please sign in to comment.