Skip to content

Commit

Permalink
Update api key for the test to match the github actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
goldmermaid committed Oct 30, 2024
1 parent af0966c commit 864400e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ In the `dev.dependencies` section of the `pyproject.toml` file, you will see the

2. Add a `.env` file in the `tests` folder with the following content:
```bash
API_KEY=*************
CAMBIO_API_KEY=*************
```

## Pre-commit
Expand Down
4 changes: 2 additions & 2 deletions tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class TestAnyParser(unittest.TestCase):
"""Testing Any Parser"""

def setUp(self):
self.api_key = os.environ.get("API_KEY")
self.api_key = os.environ.get("CAMBIO_API_KEY")
if not self.api_key:
raise ValueError("API_KEY is not set")
raise ValueError("CAMBIO_API_KEY is not set")
self.ap = AnyParser(self.api_key)

def test_pdf_sync_extract(self):
Expand Down

0 comments on commit 864400e

Please sign in to comment.