{"id":22121042,"url":"https://github.com/pytest-with-eric/api-testing-masterclass","last_synced_at":"2025-10-26T21:45:01.126Z","repository":{"id":245402977,"uuid":"816768858","full_name":"Pytest-with-Eric/api-testing-masterclass","owner":"Pytest-with-Eric","description":"Pytest API Testing with FastAPI, SQLAlchemy, Postgres ","archived":false,"fork":false,"pushed_at":"2024-07-12T08:21:13.000Z","size":181,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-29T12:29:37.806Z","etag":null,"topics":["pytest-fastapi","pytest-sqlalchemy","sqlalchemy-python"],"latest_commit_sha":null,"homepage":"https://pytest-with-eric.com/api-testing/pytest-api-testing-1/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Pytest-with-Eric.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-18T11:19:50.000Z","updated_at":"2024-09-02T13:25:29.000Z","dependencies_parsed_at":"2024-07-12T08:54:12.902Z","dependency_job_id":null,"html_url":"https://github.com/Pytest-with-Eric/api-testing-masterclass","commit_stats":null,"previous_names":["pytest-with-eric/api-testing-masterclass"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fapi-testing-masterclass","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fapi-testing-masterclass/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fapi-testing-masterclass/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fapi-testing-masterclass/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pytest-with-Eric","download_url":"https://codeload.github.com/Pytest-with-Eric/api-testing-masterclass/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245224198,"owners_count":20580363,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["pytest-fastapi","pytest-sqlalchemy","sqlalchemy-python"],"created_at":"2024-12-01T14:33:10.213Z","updated_at":"2025-10-26T21:44:56.086Z","avatar_url":"https://github.com/Pytest-with-Eric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytest API Testing Masterclass with FastAPI, Postgres and SQLAlchemy - 2 Part Series\n\n## Description\n\nThis repository contains the example code for the article series on Pytest API Testing with FastAPI, SQLAlchemy, Postgres - [Part-1](https://pytest-with-eric.com/api-testing/pytest-api-testing-1/) and [Part 2](https://pytest-with-eric.com/api-testing/pytest-api-testing-2/).\n\n\n## Installation\n\nTo install the project, you need to have Poetry installed. If you don't have it installed, you can install it by following the instructions [here](https://python-poetry.org/docs/#installation).\n\n## Requirements\n- Python 3.12\n- Poetry\n\n## Usage\n\n### How To Run the Server\n\nTo run the server, use the following command:\n\n```shell\n$ poetry run uvicorn app.main:app --host localhost --port 8000 --reload\n```\n\nThis will spin up the server at `http://localhost:8000`\n\n### How To Run the Tests\n\nTo run the tests, use the following command:\n\n```shell\n$ poetry run pytest\n$ poetry run pytest --dburl=postgresql://myuser:mypassword@localhost:5433/mydatabase_test\n```\n\nPlease follow further instructions on how to run the app in the [blog post](https://pytest-with-eric.com/api-testing/pytest-api-testing-1/).\n\nIf you have any questions about the project please raise an Issue on GitHub.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fapi-testing-masterclass","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-with-eric%2Fapi-testing-masterclass","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fapi-testing-masterclass/lists"}