{"id":22121027,"url":"https://github.com/pytest-with-eric/pytest-flask-sqlalchemy-example","last_synced_at":"2025-03-24T06:44:36.231Z","repository":{"id":248996017,"uuid":"829895231","full_name":"Pytest-with-Eric/pytest-flask-sqlalchemy-example","owner":"Pytest-with-Eric","description":"3 Proven Ways To Test Your Flask Applications With Pytest","archived":false,"fork":false,"pushed_at":"2024-07-24T09:51:17.000Z","size":39,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-01-29T12:29:35.486Z","etag":null,"topics":["pytest-flask","pytest-mock-assert-called","pytest-mocking","pytest-postgresql","pytest-sqlalchemy"],"latest_commit_sha":null,"homepage":"https://pytest-with-eric.com/api-testing/pytest-flask-postgresql-testing/","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-07-17T07:53:04.000Z","updated_at":"2024-07-24T09:52:12.000Z","dependencies_parsed_at":"2024-07-22T11:56:15.772Z","dependency_job_id":"35569b29-b240-43ff-946a-36cb6af35548","html_url":"https://github.com/Pytest-with-Eric/pytest-flask-sqlalchemy-example","commit_stats":null,"previous_names":["pytest-with-eric/pytest-flask-sqlalchemy-example"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-flask-sqlalchemy-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-flask-sqlalchemy-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-flask-sqlalchemy-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Pytest-with-Eric%2Fpytest-flask-sqlalchemy-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Pytest-with-Eric","download_url":"https://codeload.github.com/Pytest-with-Eric/pytest-flask-sqlalchemy-example/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-flask","pytest-mock-assert-called","pytest-mocking","pytest-postgresql","pytest-sqlalchemy"],"created_at":"2024-12-01T14:32:53.762Z","updated_at":"2025-03-24T06:44:36.212Z","avatar_url":"https://github.com/Pytest-with-Eric.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pytest Flask SQLAlchemy Example\n\n## Description\n\nThis repository contains the example code for the article series on [3 Proven Ways To Test Your Flask Applications With Pytest](https://pytest-with-eric.com/api-testing/pytest-flask-postgresql-testing/)\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 python user_manager/app.py\n```\n\nThis will spin up the server at `http://localhost:5000`\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-flask-postgresql-testing/).\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%2Fpytest-flask-sqlalchemy-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpytest-with-eric%2Fpytest-flask-sqlalchemy-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpytest-with-eric%2Fpytest-flask-sqlalchemy-example/lists"}