{"id":38657245,"url":"https://github.com/ptrstn/django-testing-examples","last_synced_at":"2026-01-17T09:29:10.780Z","repository":{"id":39597749,"uuid":"137340413","full_name":"ptrstn/django-testing-examples","owner":"ptrstn","description":"An example Django project tested with pytest, travis-ci and codecov","archived":false,"fork":false,"pushed_at":"2022-05-31T09:37:31.000Z","size":20,"stargazers_count":10,"open_issues_count":1,"forks_count":17,"subscribers_count":1,"default_branch":"master","last_synced_at":"2023-03-04T14:54:32.290Z","etag":null,"topics":["codecov","django","example-project","pytest-django","python","travis-ci"],"latest_commit_sha":null,"homepage":"","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/ptrstn.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}},"created_at":"2018-06-14T09:59:54.000Z","updated_at":"2023-01-02T07:24:54.000Z","dependencies_parsed_at":"2022-07-16T10:16:21.772Z","dependency_job_id":null,"html_url":"https://github.com/ptrstn/django-testing-examples","commit_stats":null,"previous_names":[],"tags_count":null,"template":null,"template_full_name":null,"purl":"pkg:github/ptrstn/django-testing-examples","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrstn%2Fdjango-testing-examples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrstn%2Fdjango-testing-examples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrstn%2Fdjango-testing-examples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrstn%2Fdjango-testing-examples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ptrstn","download_url":"https://codeload.github.com/ptrstn/django-testing-examples/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ptrstn%2Fdjango-testing-examples/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28505560,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T06:57:29.758Z","status":"ssl_error","status_checked_at":"2026-01-17T06:56:03.931Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["codecov","django","example-project","pytest-django","python","travis-ci"],"created_at":"2026-01-17T09:29:10.249Z","updated_at":"2026-01-17T09:29:10.773Z","avatar_url":"https://github.com/ptrstn.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Build Status](https://travis-ci.com/ptrstn/django-testing-examples.svg?branch=master)](https://travis-ci.com/ptrstn/django-testing-examples)\n[![codecov](https://codecov.io/gh/ptrstn/django-testing-examples/branch/master/graph/badge.svg)](https://codecov.io/gh/ptrstn/django-testing-examples)\n# Django Testing Examples\n\n### Test this repository\n```bash\ngit clone https://github.com/ptrstn/django-testing-examples.git\ncd django-testing-examples\npython -m venv venv\nsource venv/bin/activate\npip install django==1.11\npip install -r testing-requirements.txt\npytest\n```\n\n### Generate HTML coverage report\n```bash\npytest --cov=. --cov-report=html\nchromium htmlcov/index.html\n```\n\n### Test for Deprecation Warnings\nIf you want to upgrade from Django 1.11 to Django 2.0 you need to make sure that there are no DeprecationWarnings:\n```bash\nPYTHONWARNINGS=all pytest\n# or\npython -Wall manage.py test\n```\n\n### Test with PyCharm\n - do \"Test this repository\" steps then open folder with PyCharm\n\n - File -\u003e Settings -\u003e Tools -\u003e Python Integrated tools -\u003e\nDefault test runner: py.test -\u003e OK\n\n - Run -\u003e Run... -\u003e  Edit Configuratinos... -\u003e + -\u003e Python tests -\u003e py.test -\u003e Name: pytest -\u003e OK\n\n - Run -\u003e 'pytest'\n\n### How this project was created\n```bash\nmkdir django-testing-examples\ncd django-testing-examples\npython -m venv venv\nsource venv/bin/activate\npip install -I django==1.11\ngit init\nwget \"https://www.gitignore.io/api/django%2Cpython%2Cpycharm%2Ball\" -O .gitignore\ndjango-admin startproject django_testing_examples .\npython manage.py startapp myapp\npython manage.py migrate\n```\n\n# Resources\n\nThe Django Test Driven Development Cookbook:\n- https://www.youtube.com/watch?v=41ek3VNx_6Q\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrstn%2Fdjango-testing-examples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fptrstn%2Fdjango-testing-examples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fptrstn%2Fdjango-testing-examples/lists"}