Skip to content

Commit

Permalink
Merge pull request #59 from CambioML/dev
Browse files Browse the repository at this point in the history
Update api key, update owner, and update test verbose mode
  • Loading branch information
Sdddell authored Oct 30, 2024
2 parents af0966c + fd8008c commit 64ec399
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Default codeowners/reviewers for all code changes
* @CambioML @Sdddell
* @CambioML @Sdddell @goldmermaid @lingjiekong
4 changes: 2 additions & 2 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ jobs:
isort . --profile=black --check-only --verbose
- name: Test with unittest
env:
API_KEY: ${{ secrets.API_KEY }}
CAMBIO_API_KEY: ${{ secrets.CAMBIO_API_KEY }}
run: |
poetry run python -m unittest discover tests
poetry run python -m unittest discover -v tests
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 64ec399

Please sign in to comment.