{"id":19852590,"url":"https://github.com/onramplab/pytest-starter","last_synced_at":"2026-05-14T09:34:57.185Z","repository":{"id":227575956,"uuid":"767935641","full_name":"OnrampLab/pytest-starter","owner":"OnrampLab","description":null,"archived":false,"fork":false,"pushed_at":"2024-11-07T08:33:22.000Z","size":117,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-01-11T13:28:10.987Z","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/OnrampLab.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-03-06T06:59:39.000Z","updated_at":"2024-11-07T08:33:26.000Z","dependencies_parsed_at":"2025-01-11T13:26:59.823Z","dependency_job_id":"683b8b03-21b5-4f31-b1eb-cf7f92678961","html_url":"https://github.com/OnrampLab/pytest-starter","commit_stats":{"total_commits":33,"total_committers":1,"mean_commits":33.0,"dds":0.0,"last_synced_commit":"02556aa542f03f02d449592fd6d1675aceb092f7"},"previous_names":["onramplab/pytest-starter"],"tags_count":0,"template":true,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fpytest-starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fpytest-starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fpytest-starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/OnrampLab%2Fpytest-starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/OnrampLab","download_url":"https://codeload.github.com/OnrampLab/pytest-starter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241241473,"owners_count":19932756,"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-12T14:03:37.265Z","updated_at":"2026-05-14T09:34:52.162Z","avatar_url":"https://github.com/OnrampLab.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytest-starter\n\n## Set up project\n\n## Install package manager - poetry\n\n```bash\ndocker-compose build\n```\n\n## Install packages\n\n### Copy config\n\n```\ncp config.yml.example config.yml\ncp .env.example .env\n```\n\n## Running tests\n\n```\npython -m pytest tests/test_registration.py\n```\n\n```\npython -m pytest tests/\n```\n\n```\npython -m pytest -s tests/test_contact_report.py\n```\n\nTo generate xml results, run the following command : `pytest Tests --junitxml=\"result.xml\"`\n\nFor more on Pytest, go [here.](https://docs.pytest.org/en/stable/)\n\n## Clear cache\n\nWindows\n\n```\nRemove-Item -Recurse -Force .pytest_cache\n```\n\n## CI/CD\n\n### Encrypt config.yml to AWS S3 for staging or production\n\nPrerequisites:\n\n1. You need to create a KMS key in AWS.\n\n2. Update aws setting in `pytest.ini`\n\n3. You can create `config.yml.dev`, `config.yml.staging` and `config.yml.production`. And then doing encryption before running CI/CD pipeline.\n\n4. Do encryption\n\n```bash\n$ export KMS_KEY_ID=\"your_kms_key_id\"\n$ docker-compose run app python tools/scripts/encrypt_config.py [Environment]\n```\n\nEnvironment will be:\n  - `dev`: for feature branch\n  - `staging` for master branch\n  - `production` for tag\n\nIt will create a S3 file object under `pytest/encrypted_config.yml` of S3 bucket.\n\nProduction uses `starter` bucket. Staging uses `starter-staging` bucket.\n\n## Contribution\n\n```\ngit checkout YOUR_BRANCH\ngit add .\ngit commit -m \"YOUR_MESSAGE\"\ngit push origin YOUR_BRANCH\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonramplab%2Fpytest-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fonramplab%2Fpytest-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fonramplab%2Fpytest-starter/lists"}