-
Notifications
You must be signed in to change notification settings - Fork 10
Collection: Standardized OpenAI Creds Fetching #258
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 10 commits
7732dd1
fe1a547
613b7cc
49f428a
f64fa46
d8d67dc
487166f
765e156
7575920
f0990fb
60893c6
af3c79e
f91b613
1fe3c98
94435c0
4801db3
2a0b5fd
d87c09a
e30dcff
f633a5d
3454a00
b8ed73c
4b5d8d8
5b45d6a
d4afb58
016aa16
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -23,8 +23,9 @@ def test_response_is_success( | |||||||||||||||||||||||||||||||||
| db: Session, | ||||||||||||||||||||||||||||||||||
| route: Route, | ||||||||||||||||||||||||||||||||||
| crawler: WebCrawler, | ||||||||||||||||||||||||||||||||||
| api_key_headers: dict[str, str], | ||||||||||||||||||||||||||||||||||
| ): | ||||||||||||||||||||||||||||||||||
| store = DocumentStore(db) | ||||||||||||||||||||||||||||||||||
| store = DocumentStore(db, api_key_headers) | ||||||||||||||||||||||||||||||||||
| response = crawler.get(route.append(store.put())) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| assert response.is_success | ||||||||||||||||||||||||||||||||||
|
|
@@ -34,8 +35,9 @@ def test_info_reflects_database( | |||||||||||||||||||||||||||||||||
| db: Session, | ||||||||||||||||||||||||||||||||||
| route: Route, | ||||||||||||||||||||||||||||||||||
| crawler: WebCrawler, | ||||||||||||||||||||||||||||||||||
| api_key_headers: dict[str, str], | ||||||||||||||||||||||||||||||||||
| ): | ||||||||||||||||||||||||||||||||||
| store = DocumentStore(db) | ||||||||||||||||||||||||||||||||||
| store = DocumentStore(db, api_key_headers) | ||||||||||||||||||||||||||||||||||
| document = store.put() | ||||||||||||||||||||||||||||||||||
| source = DocumentComparator(document) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
|
|
@@ -44,13 +46,10 @@ def test_info_reflects_database( | |||||||||||||||||||||||||||||||||
| assert source == target.data | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| def test_cannot_info_unknown_document( | ||||||||||||||||||||||||||||||||||
| self, | ||||||||||||||||||||||||||||||||||
| db: Session, | ||||||||||||||||||||||||||||||||||
| route: Route, | ||||||||||||||||||||||||||||||||||
| crawler: Route, | ||||||||||||||||||||||||||||||||||
| self, db: Session, route: Route, crawler: Route, api_key_headers: dict[str, str] | ||||||||||||||||||||||||||||||||||
| ): | ||||||||||||||||||||||||||||||||||
| DocumentStore.clear(db) | ||||||||||||||||||||||||||||||||||
| maker = DocumentMaker(db) | ||||||||||||||||||||||||||||||||||
| maker = DocumentMaker(db, api_key_headers) | ||||||||||||||||||||||||||||||||||
| response = crawler.get(route.append(next(maker))) | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| assert response.is_error | ||||||||||||||||||||||||||||||||||
|
Comment on lines
48
to
53
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Fix the type annotation for the crawler parameter. The Apply this diff to fix the type annotation: def test_cannot_info_unknown_document(
- self, db: Session, route: Route, crawler: Route, api_key_headers: dict[str, str]
+ self, db: Session, route: Route, crawler: WebCrawler, api_key_headers: dict[str, str]
):📝 Committable suggestion
Suggested change
🧰 Tools🪛 Ruff (0.12.2)49-49: Redefinition of unused (F811) 🤖 Prompt for AI Agents |
||||||||||||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.