{"id":13599602,"url":"https://github.com/qxf2/makemework","last_synced_at":"2025-04-10T17:31:30.182Z","repository":{"id":50189082,"uuid":"196205331","full_name":"qxf2/makemework","owner":"qxf2","description":"Fix the issues in this repo and make the program work. ","archived":false,"fork":false,"pushed_at":"2023-08-03T16:39:05.000Z","size":490,"stargazers_count":20,"open_issues_count":5,"forks_count":48,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-07T01:38:43.826Z","etag":null,"topics":["automation","intermediate","pytest","python","python3","selenium"],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/qxf2.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-07-10T12:55:26.000Z","updated_at":"2024-10-19T03:34:46.000Z","dependencies_parsed_at":"2024-01-14T04:45:38.599Z","dependency_job_id":"6c0698ee-9896-45e9-b8c6-58acb38a557a","html_url":"https://github.com/qxf2/makemework","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qxf2%2Fmakemework","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qxf2%2Fmakemework/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qxf2%2Fmakemework/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/qxf2%2Fmakemework/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/qxf2","download_url":"https://codeload.github.com/qxf2/makemework/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248261993,"owners_count":21074229,"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":["automation","intermediate","pytest","python","python3","selenium"],"created_at":"2024-08-01T17:01:07.602Z","updated_at":"2025-04-10T17:31:29.862Z","avatar_url":"https://github.com/qxf2.png","language":"Python","readme":"# Make me work!\nFix the issues in this repo and make this program work. This repository is aimed at folks who have already learnt to *write* basic Python but are looking for more realistic challenges that involve reading a large enough codebase, exploring file structures and making changes to an existing codebase.\n\nThe code you are going to run is a Selenium test for the [Weather Shopper](http://weathershopper.pythonanywhere.com/) application. The automated test itself completes the [weather shopper exercise](https://github.com/qxf2/weather-shopper). Your job is to fix the problems in the automated test and make it run successfully.\n\n# Setup\n0. This codebase uses Python 3.10.0\n1. Fork this repository\n2. Clone your forked repository\n3. Create a virtualenv and activate it\n4. `pip install -r requirements.txt`\n5. Install Chrome driver. If you don't know how to, please try:\n   \u003e [Chrome driver](https://sites.google.com/a/chromium.org/chromedriver/getting-started)\n6. Run the test using the command `pytest -k e2e`\n\nThe setup instructions are intentionally high-level since this repository is aimed at people with people who have already written Python before. If you are beginner, you will find our [other repository](https://github.com/qxf2/wtfiswronghere) a better place to start.\n\n# Your assignment\nThe [weather shopper exercise](https://github.com/qxf2/weather-shopper) has been partially completed using the code provided to you. Your assignment is to:\n\n1. fix the errors in the existing code\n2. complete the exercise on the payment page\n3. use the same design patterns and programming style when solving the exercises\n\n# How to proceed?\n1. Run the test using the command `pytest -k e2e`\n2. Observe, debug and fix the error\n3. Test your fix\n4. Commit your change and push\n5. Repeat steps 1-4 for the next error\n\n# Example working test\nIf you fix all the bugs in this code, your test should perform like the gif below:\n\n![](working-weather-shopper-test.gif)\n\nRemember, you should not stop at just fixing the existing code. You should also complete the instructions on the cart page too!\n\n# Debugging tips\nHere are some useful debugging tips that do not involve the use of debugger:\n\n1. Search for strings in all files\n2. Search for sub-strings in all files if the exact string does not exist\n3. F12 to follow the definition of a method in Visual Studio Code\n4. Add debug messages to figure out the flow\n5. if True: trick (to get exact error messages, in the test, replace `try:` with `if True:` and comment out the `except` portion)\n6. Read the log messages backwards\n7. Sometimes the error happens in the line before the failure!\n\n\n# Notes\n1. Use Python 3.10.0\n2. We recommend using Visual Studio code as your IDE\n3. We recomment using a virtualenv\n4. You need to have Chrome driver installed\n\n# About\nThis repository is created and maintained by [Qxf2 Services](https://qxf2.com/?utm_source=github\u0026utm_medium=click\u0026utm_campaign=Make%20me%20word). Qxf2 provides software testing services for startups.\nIf your team is working on an early stage product and needs QA, you can hire Qxf2 Services to help. Contact Arun at mak@qxf2.com\n","funding_links":[],"categories":["Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxf2%2Fmakemework","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fqxf2%2Fmakemework","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fqxf2%2Fmakemework/lists"}