{"id":23961024,"url":"https://github.com/tawounfouet/ocr_testing-python-django","last_synced_at":"2025-02-24T12:43:16.805Z","repository":{"id":219506477,"uuid":"749209154","full_name":"tawounfouet/ocr_testing-python-django","owner":"tawounfouet","description":"Ce projet a été réalisé dans le but de m'entrainer aux différentes formes de tests : unitaire, intégration et de performance","archived":false,"fork":false,"pushed_at":"2024-04-08T13:49:29.000Z","size":15419,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-06T19:58:56.229Z","etag":null,"topics":["bdd-framework","integration-testing","pytest","tdd","unitest"],"latest_commit_sha":null,"homepage":"","language":"CSS","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/tawounfouet.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}},"created_at":"2024-01-27T22:10:50.000Z","updated_at":"2024-04-08T14:17:10.000Z","dependencies_parsed_at":"2024-04-08T15:07:02.154Z","dependency_job_id":null,"html_url":"https://github.com/tawounfouet/ocr_testing-python-django","commit_stats":null,"previous_names":["tawounfouet/mysite","tawounfouet/django-unitest-project","tawounfouet/testing-python-django"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tawounfouet%2Focr_testing-python-django","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tawounfouet%2Focr_testing-python-django/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tawounfouet%2Focr_testing-python-django/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tawounfouet%2Focr_testing-python-django/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tawounfouet","download_url":"https://codeload.github.com/tawounfouet/ocr_testing-python-django/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240483708,"owners_count":19808631,"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":["bdd-framework","integration-testing","pytest","tdd","unitest"],"created_at":"2025-01-06T19:59:02.027Z","updated_at":"2025-02-24T12:43:16.778Z","avatar_url":"https://github.com/tawounfouet.png","language":"CSS","readme":"[![forthebadge](https://forthebadge.com/images/badges/made-with-python.svg)](https://forthebadge.com) [![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)\n# Django Testing Project : Unit, Integration \u0026 Performance Test\n\nCe projet a été réalisé dans le but de m'entrainer aux différentes formes de tests. Le code source contient un projet Django(un mini site e-commerce).J'ai ainsi pu développer l'ensemble des scénarios nécessaires afin de tester l'ensemble du code source d'une applicationd django.\n\n## Pré-requis\n\n* Installer Python 3 : [Téléchargement Python 3](https://www.python.org/downloads/)\n* Installer git : [Téléchargement Git](https://git-scm.com/book/fr/v2/D%C3%A9marrage-rapide-Installation-de-Git)\n\n## Installation\n\n### 1. Téléchargement du projet sur un répertoire local : \n```\ngit clone https://github.com/tawounfouet/testing-python-django.git\n```\n### 2. Mise en place un environnement virtuel :\n* Créer l'environnement virtuel: `python3.10 -m venv .env`\n* Activer l'environnement virtuel :\n    * Windows : `venv\\Scripts\\activate.bat`\n    * Unix/MacOS : `source .env/bin/activate`\n    \n### 3. Installer les dépendances du projet\n```\npip install -r requirements.txt\n```\n\n## Démarrage\n* Lancer le serveur à l'aide de la commande suivante : \n`python3 manage.py runserver`\n\n## Corrections\n\n1. Proposition de correction pour les tests unitaires avec Pytest :\n```\ngit checkout pytest-test\npytest\n```\n\n2. Proposition de correction pour les tests unitaires avec des fixtures :\n```\ngit checkout fixture-test\npytest\n```\n\n3. Proposition de correction pour les tests unitaires avec des classes :\n```\ngit checkout class-test\npytest\n```\n\n4. Proposition de correction pour les tests d'intégration :\n```\ngit checkout integration-test\npytest\n```\n\n5. Proposition de correction pour les tests fonctionnels (N'oubliez pas de télécharger le webdriver) : \n```\ngit checkout functional-test\npython manage.py test\n```\n\n6. Proposition de correction pour les tests de performance: \n```\ngit checkout performance-test\nlocust\n```\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftawounfouet%2Focr_testing-python-django","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftawounfouet%2Focr_testing-python-django","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftawounfouet%2Focr_testing-python-django/lists"}