{"id":21107321,"url":"https://github.com/ninjascl/python-test-env","last_synced_at":"2025-08-30T17:43:43.583Z","repository":{"id":119741328,"uuid":"278504782","full_name":"NinjasCL/python-test-env","owner":"NinjasCL","description":"A testing environment for Python Scripts","archived":false,"fork":false,"pushed_at":"2020-07-10T02:50:42.000Z","size":9,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-21T03:42:16.955Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/NinjasCL.png","metadata":{"files":{"readme":"README.adoc","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":"2020-07-10T01:00:32.000Z","updated_at":"2020-07-10T02:50:44.000Z","dependencies_parsed_at":null,"dependency_job_id":"9cbc33f2-f9e4-4d2e-8029-36245181c2b5","html_url":"https://github.com/NinjasCL/python-test-env","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fpython-test-env","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fpython-test-env/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fpython-test-env/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/NinjasCL%2Fpython-test-env/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/NinjasCL","download_url":"https://codeload.github.com/NinjasCL/python-test-env/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243551248,"owners_count":20309300,"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-20T00:38:38.257Z","updated_at":"2025-03-14T09:21:18.027Z","avatar_url":"https://github.com/NinjasCL.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Python Testing Environment\n\nThis is a simple environment for testing out\n_Python_ scripts. Ideally for studing algorithms and data structures.\n\nimage:https://github.com/ninjascl/python-test-env/workflows/docker-ci/badge.svg[Test Status]\n\n## Requirements\n\n- https://www.docker.com/[Docker]\n- https://en.wikipedia.org/wiki/Makefile[Make]\n\n## Available Tools\n\n- https://github.com/docker-library/python/tree/master/3.8[Python 3.8]\n- https://docs.pytest.org/en/stable/getting-started.html[pytest]\n- https://github.com/psf/black[black]\n- https://pypi.org/project/typing-extensions/[typing-extensions]\n\n## Usage\n\n### Makefile\n\nAll the commands are inside this file. You can modify\n`IMAGE` and `RUN` variables to suit your needs.\n\n### `$ make build`\n\nThis command will create the `container`.\n\n### `$ make format`\n\nThis command will execute _Black_ code formatter.\n\n### `$ make run`\n\nThis command will execute _Python_ REPL inside the container.\n\n### `$ make shell`\n\nThis command will enter the _Bash_ shell inside the container.\n\n### `$ make test`\n\nThis command will execute _Pytest_ inside the container.\n\n### _Taskfile.sh_\n\n`Taskfile.sh` is a special file that helps running commands inside the container. To execute it first use `$ make shell` to enter the container. Then you can use `run` to execute commands defined in `Taskfile.sh`.\n\n#### `$ run test`\n\nRuns _Pytest_.\n\n#### `$ run test:file \u003cfile\u003e`\n\nRuns _Pytest_ on a file named `test/test_\u003cfile\u003e.py`\n\n#### `$ run test:file:fn \u003cfile\u003e \"\u003ckeywords\u003e\"`\n\nRuns _Pytest_ on a file named `test/test_\u003cfile\u003e.py` and execute all the methods wich contains the words inside \"\u003ckeywords\u003e\".\n\nSee https://docs.pytest.org/en/latest/example/index.html\n\n\n++++\nMade with \u003ci class=\"fa fa-heart\"\u003e\u0026#9829;\u003c/i\u003e by \u003ca href=\"https://ninjas.cl\" target=\"_blank\"\u003eNinjas.cl\u003c/a\u003e.\n++++\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Fpython-test-env","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fninjascl%2Fpython-test-env","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fninjascl%2Fpython-test-env/lists"}