Title: ImportError while loading conftest · Issue #6 · PacktPublishing/Building-Python-Web-APIs-with-FastAPI · GitHub
Open Graph Title: ImportError while loading conftest · Issue #6 · PacktPublishing/Building-Python-Web-APIs-with-FastAPI
X Title: ImportError while loading conftest · Issue #6 · PacktPublishing/Building-Python-Web-APIs-with-FastAPI
Description: I'm having an issue with running tests. Below is the error when running > pytest test/test_login.py I have compared my files and directory structure to the repo and cannot see what I'm missing. ImportError while loading conftest 'D:\Docu...
Open Graph Description: I'm having an issue with running tests. Below is the error when running > pytest test/test_login.py I have compared my files and directory structure to the repo and cannot see what I'm missing. Imp...
X Description: I'm having an issue with running tests. Below is the error when running > pytest test/test_login.py I have compared my files and directory structure to the repo and cannot see what I'm m...
Opengraph URL: https://github.com/PacktPublishing/Building-Python-Web-APIs-with-FastAPI/issues/6
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"ImportError while loading conftest","articleBody":"I'm having an issue with running tests. Below is the error when running \u003e pytest test/test_login.py\r\n\r\nI have compared my files and directory structure to the repo and cannot see what I'm missing.\r\n\r\nImportError while loading conftest 'D:\\Documents\\Python\\PacktFastAPI\\planner\\tests\\conftest.py'.\r\ntests\\conftest.py:5: in \u003cmodule\u003e\r\n from main import app\r\nE ModuleNotFoundError: No module named 'main'\r\n","author":{"url":"https://github.com/knlklabacka","@type":"Person","name":"knlklabacka"},"datePublished":"2023-09-08T18:54:52.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":2},"url":"https://github.com/6/Building-Python-Web-APIs-with-FastAPI/issues/6"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4f0091c2-7e14-0fa8-514e-7fa8953c2f5f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A350:1191FC:5D59E:7CCD3:6A6165C7 |
| html-safe-nonce | 901b3f1a9933af30a005c41ce007413decd411a6ac14419d7792ecb6863d2f22 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMzUwOjExOTFGQzo1RDU5RTo3Q0NEMzo2QTYxNjVDNyIsInZpc2l0b3JfaWQiOiI2Nzc1MDg4MzI0NTQ0NjUyNzQ0IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 4d49018be30528e30f082cf2786483e3f15acf4e0c5242a6029d891bb414c873 |
| hovercard-subject-tag | issue:1888171266 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PacktPublishing/Building-Python-Web-APIs-with-FastAPI/6/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c2f435744f669747530e7f6759f6d9e6aa31555a61306a501b56dd0124381170/PacktPublishing/Building-Python-Web-APIs-with-FastAPI/issues/6 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c2f435744f669747530e7f6759f6d9e6aa31555a61306a501b56dd0124381170/PacktPublishing/Building-Python-Web-APIs-with-FastAPI/issues/6 |
| og:image:alt | I'm having an issue with running tests. Below is the error when running > pytest test/test_login.py I have compared my files and directory structure to the repo and cannot see what I'm missing. Imp... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | knlklabacka |
| hostname | github.com |
| expected-hostname | github.com |
| None | a69385f7d268ece7ad25b131bbd70f457024811fc79afcae43785a6849b724e2 |
| turbo-cache-control | no-preview |
| go-import | github.com/PacktPublishing/Building-Python-Web-APIs-with-FastAPI git https://github.com/PacktPublishing/Building-Python-Web-APIs-with-FastAPI.git |
| octolytics-dimension-user_id | 10974906 |
| octolytics-dimension-user_login | PacktPublishing |
| octolytics-dimension-repository_id | 343784532 |
| octolytics-dimension-repository_nwo | PacktPublishing/Building-Python-Web-APIs-with-FastAPI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 343784532 |
| octolytics-dimension-repository_network_root_nwo | PacktPublishing/Building-Python-Web-APIs-with-FastAPI |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 484cf265a1f970d5c7a5e7c37cb677d8010aa12f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width