{"id":21372404,"url":"https://github.com/automationpanda/gotri-qr-payment-codes","last_synced_at":"2026-06-23T18:32:30.680Z","repository":{"id":108913218,"uuid":"577566005","full_name":"AutomationPanda/gotri-qr-payment-codes","owner":"AutomationPanda","description":"A Python test automation project covering QR payment codes for the (fictitious) GoTri public transit system","archived":false,"fork":false,"pushed_at":"2022-12-13T15:16:34.000Z","size":14,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-16T08:44:16.855Z","etag":null,"topics":["pytest","python","python-testing","qr-code","tdd","test-automation","test-driven-development","test-framework","testing","the-way-to-test-software"],"latest_commit_sha":null,"homepage":"","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/AutomationPanda.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,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-13T02:39:19.000Z","updated_at":"2022-12-13T21:43:47.000Z","dependencies_parsed_at":"2023-03-21T14:05:02.573Z","dependency_job_id":null,"html_url":"https://github.com/AutomationPanda/gotri-qr-payment-codes","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AutomationPanda/gotri-qr-payment-codes","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomationPanda%2Fgotri-qr-payment-codes","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomationPanda%2Fgotri-qr-payment-codes/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomationPanda%2Fgotri-qr-payment-codes/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomationPanda%2Fgotri-qr-payment-codes/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AutomationPanda","download_url":"https://codeload.github.com/AutomationPanda/gotri-qr-payment-codes/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AutomationPanda%2Fgotri-qr-payment-codes/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34702913,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-23T02:00:07.161Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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","python","python-testing","qr-code","tdd","test-automation","test-driven-development","test-framework","testing","the-way-to-test-software"],"created_at":"2024-11-22T08:19:36.633Z","updated_at":"2026-06-23T18:32:30.660Z","avatar_url":"https://github.com/AutomationPanda.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoTri QR Payment Codes\n\nThis repository contains the example code for Chapter 4 in Andrew Knight's book, *The Way To Test Software*.\nEach section of the chapter iteratively builds a small test automation solution in Python\nto test QR payment codes for a fictitious public transit system named \"GoTri\".\n\nThe example code for each section is placed into subdirectories within this repository\nso you can view and execute the progress as a snapshot made at each stage of its development.\n\n1. Section 4.1 shows a few functions for generating QR payment codes.\n2. Section 4.2 shows how to build a custom test framework from scratch.\n3. Section 4.3 shows how to rewrite the entire test solution using [`pytest`](https://docs.pytest.org/).\n4. Section 4.4 shows a new set of tests developed using *Test-Driven Development* (TDD).\n\n\n## Installation\n\nThe example code should work on any operating system (Windows, macOS, Linux).\nTo install it:\n\n1. Install [Python](https://www.python.org/) 3.8 or higher.\n2. Clone this repository onto your local machine.\n3. Install dependency packages from the command line:\n   * Change directory to the project's root directory.\n   * Run `pip install -r requirements.txt` to install all dependencies.\n\n\n## Execution\n\nEach section subdirectory functions as its own project.\nThe table below shows how to execute the code at each snapshot.\nChange directory into the project subdirectory before running commands.\n\n| Section | Project Subdirectory | Execution Commands |\n| ------- | -------------------- | ------------------ |\n| 4.1     | `gotri_app`          | Load and call functions from the `qrcodes` module in the `python` interpreter |\n| 4.2.2   | `gotri_app`          | `python test_qrcodes.py`  |\n| 4.2.3   | `gotri_app`          | `python test_qrcodes.py`  |\n| 4.2.4   | `gotri_app`          | `python run_all_tests.py` |\n| 4.2.5   | `gotri_app`          | `python run_all_tests.py` |\n| 4.2.6   | `gotri_app`          | `python run_all_tests.py` |\n| 4.2.7   | `gotri_app`          | `python run_all_tests.py` |\n| 4.3     | `gotri_app_pytest`   | `python -m pytest tests`  |\n| 4.4.2   | `gotri_app_pytest`   | `python -m pytest tests`  |\n| 4.4.3   | `gotri_app_pytest`   | `python -m pytest tests`  |\n| 4.4.4   | `gotri_app_pytest`   | `python -m pytest tests`  |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomationpanda%2Fgotri-qr-payment-codes","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fautomationpanda%2Fgotri-qr-payment-codes","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fautomationpanda%2Fgotri-qr-payment-codes/lists"}