{"id":22076526,"url":"https://github.com/codecademy/add-automated-tests-off-platform-project","last_synced_at":"2025-10-05T04:09:00.983Z","repository":{"id":36952323,"uuid":"429208931","full_name":"Codecademy/add-automated-tests-off-platform-project","owner":"Codecademy","description":null,"archived":false,"fork":false,"pushed_at":"2024-08-14T16:21:50.000Z","size":4,"stargazers_count":6,"open_issues_count":196,"forks_count":1686,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-01T08:37:16.487Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/Codecademy.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":"2021-11-17T21:40:00.000Z","updated_at":"2025-01-16T01:21:15.000Z","dependencies_parsed_at":"2024-12-02T00:00:47.017Z","dependency_job_id":null,"html_url":"https://github.com/Codecademy/add-automated-tests-off-platform-project","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"4362348aa5d17f9f5503a9a43d5300f38160572f"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Fadd-automated-tests-off-platform-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Fadd-automated-tests-off-platform-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Fadd-automated-tests-off-platform-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Codecademy%2Fadd-automated-tests-off-platform-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Codecademy","download_url":"https://codeload.github.com/Codecademy/add-automated-tests-off-platform-project/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247809964,"owners_count":20999816,"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":[],"created_at":"2024-11-30T22:15:03.759Z","updated_at":"2025-10-05T04:09:00.882Z","avatar_url":"https://github.com/Codecademy.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BankAccount\nThis is an educational public repository to illustrate the power of automated testing through Github Actions.\n\n## Run locally\n1. Set up Python virtual environment.\n```\npython -m venv venv\n```\n2. Install required dependencies.\n```\npip install -r requirements.txt\n```\n3. Run unit tests.\n```\npython -m pytest\n```\n4. Run the app.\n```\npython app.py\n```\n\n## Code Description\n\n1. app.py: A flask application that exposes the following API endpoints: \n  - index at / : Retun a JSON data structure indicating the current balance. \n  - deposit at /deposit : Take the deposit amount as a URL parameter and return the new balance after adding the amount. \n  - withdraw at /withdraw : Take the withdrawal amount as a URL parameter and return the new balance after subtracting the amount. \nApp relies on a global in-memory variable (`balance`) to store the balance of the account.\n\n2. requirements.txt: A text file including all the Python libraries and packages needed to run the app. \n\n3. .gitignore: Refer to the gitignore article for more details. In short, this file makes it possible that local configuration or binary files are not pushed to the repository. \n\n4. tests: It's a directory that includes several unit tests for the APIs. The tests utilize the PyTest library.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Fadd-automated-tests-off-platform-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodecademy%2Fadd-automated-tests-off-platform-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodecademy%2Fadd-automated-tests-off-platform-project/lists"}