{"id":16654009,"url":"https://github.com/seporaitis/django-tutorial-tests","last_synced_at":"2026-03-07T18:04:45.617Z","repository":{"id":147879249,"uuid":"95156395","full_name":"seporaitis/django-tutorial-tests","owner":"seporaitis","description":"Django tutorial application with a few more tests.","archived":false,"fork":false,"pushed_at":"2017-06-24T22:10:20.000Z","size":28,"stargazers_count":5,"open_issues_count":2,"forks_count":2,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-09T18:11:30.021Z","etag":null,"topics":["django","django-test","django-tutorial-application","python3"],"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/seporaitis.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":"2017-06-22T21:04:26.000Z","updated_at":"2022-07-15T20:38:56.000Z","dependencies_parsed_at":"2023-04-28T08:19:09.873Z","dependency_job_id":null,"html_url":"https://github.com/seporaitis/django-tutorial-tests","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/seporaitis/django-tutorial-tests","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seporaitis%2Fdjango-tutorial-tests","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seporaitis%2Fdjango-tutorial-tests/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seporaitis%2Fdjango-tutorial-tests/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seporaitis%2Fdjango-tutorial-tests/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/seporaitis","download_url":"https://codeload.github.com/seporaitis/django-tutorial-tests/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/seporaitis%2Fdjango-tutorial-tests/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30225479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T17:00:40.062Z","status":"ssl_error","status_checked_at":"2026-03-07T17:00:39.026Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["django","django-test","django-tutorial-application","python3"],"created_at":"2024-10-12T09:48:15.705Z","updated_at":"2026-03-07T18:04:45.600Z","avatar_url":"https://github.com/seporaitis.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Django Test Tutorial\n\n[![badge](https://img.shields.io/travis/seporaitis/django-tutorial-tests/master.svg)](https://travis-ci.org/seporaitis/django-tutorial-tests/builds)\n\n## What is this?\n\nThis is the standard Django tutorial application with some extra\ntests.\n\n## Why is it here?\n\nHigh level: provide examples of testing Django views, especially GET \u0026\nPOST requests, using Django test `Client` and Django `RequestFactory`.\n\nThe top-level difference between the two is that `Client` creates and\nruns the request starting at low-level HTTP, to middleware, to view,\nand returns the response object with the context, used to render\ntemplate.\n\nOn the other hand, `RequestFactory` returns request object that can be\nthen used to test view function as a black-box, with exactly known\ninputs, testing for specific outputs.\n\nAlthough both have their purpose, request factory based tests are much\nfaster than client, as can be observed by cloning this repository and\nrunning `tox`:\n\n``` shell\n$ tox -- polls.tests.test_views_with_request_factory\n... output ...\nRan 9 tests in 0.030s\n```\n\n``` shell\n$ tox -- polls.tests.test_views_with_client\n... output ...\nRan 10 tests in 0.205s\n```\n\n## Tests\n\n* using `Client`: [polls/tests/test_views_with_client.py](https://github.com/seporaitis/django-tutorial-tests/blob/master/polls/tests/test_views_with_client.py)\n* using `RequestFactory`: [polls/tests/test_views_with_request_factory.py](https://github.com/seporaitis/django-tutorial-tests/blob/master/polls/tests/test_views_with_request_factory.py)\n\n## More reading:\n\n* [Django test `Client`](https://docs.djangoproject.com/en/dev/topics/testing/tools/)\n* [Django `RequestFactory`](https://docs.djangoproject.com/en/1.11/topics/testing/advanced/#the-request-factory)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseporaitis%2Fdjango-tutorial-tests","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fseporaitis%2Fdjango-tutorial-tests","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fseporaitis%2Fdjango-tutorial-tests/lists"}