{"id":17027945,"url":"https://github.com/simonlammer/testpythonscript","last_synced_at":"2026-01-19T07:32:23.246Z","repository":{"id":45479712,"uuid":"296222072","full_name":"SimonLammer/testpythonscript","owner":"SimonLammer","description":null,"archived":false,"fork":false,"pushed_at":"2022-10-21T18:16:00.000Z","size":40,"stargazers_count":0,"open_issues_count":4,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-05T20:43:13.572Z","etag":null,"topics":["hacktoberfest","python3","testing"],"latest_commit_sha":null,"homepage":"","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/SimonLammer.png","metadata":{"files":{"readme":"README.md","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}},"created_at":"2020-09-17T04:49:00.000Z","updated_at":"2022-10-12T07:40:00.000Z","dependencies_parsed_at":"2023-01-20T06:20:16.944Z","dependency_job_id":null,"html_url":"https://github.com/SimonLammer/testpythonscript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/SimonLammer/testpythonscript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonLammer%2Ftestpythonscript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonLammer%2Ftestpythonscript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonLammer%2Ftestpythonscript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonLammer%2Ftestpythonscript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SimonLammer","download_url":"https://codeload.github.com/SimonLammer/testpythonscript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SimonLammer%2Ftestpythonscript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28562993,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-19T03:31:16.861Z","status":"ssl_error","status_checked_at":"2026-01-19T03:31:15.069Z","response_time":67,"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":["hacktoberfest","python3","testing"],"created_at":"2024-10-14T07:51:45.181Z","updated_at":"2026-01-19T07:32:23.223Z","avatar_url":"https://github.com/SimonLammer.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# testpythonscript\n\nThis script provides a starting point to automate testing of other python scripts (e.g. student submissions).\n\n## Usage\n\nConsult `python3 test.py --help` for complete usage instructions.\n\nYou may wish to run these tests within a docker container (to make it more difficult for students to mess up your machine) with [this shell script](https://gist.github.com/SimonLammer/f863627f11221379d825f7a34d8f84c3)\n\n### Example\n\nHere's what happens when you run the current [`test.py`](./test.py) against [`sample_script.py`](./sample_script.py):\n\n`python3 test.py sample_script.py`:\n```\nprocess 26916 is processing sample_script.py\nprocess 26916 finished with exit code 0\n++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++\nOutput of sample_script.py test (exitcode 0):\ntest_false (__main__.Test) ... FAIL\ntest_foo (__main__.Test) ... ok\ntest_initial_attributes (__main__.Test) ... ok\ntest_library_load_stdin (__main__.Test) ... ok\ntest_skip_decorator (__main__.Test) ... skipped 'This is how you can skip tests.'\ntest_skip_self (__main__.Test) ... skipped 'You can also skip tests this way.'\n\n======================================================================\nFAIL: test_false (__main__.Test)\n----------------------------------------------------------------------\nTraceback (most recent call last):\n  File \"test.py\", line 36, in inner\n    func(*args, stdout, stderr, **kwargs)\n  File \"test.py\", line 70, in test_false\n    self.assertTrue(LIBRARY.return_true())\nAssertionError: False is not true\n\n----------------------------------------------------------------------\nRan 6 tests in 0.001s\n\nFAILED (failures=1, skipped=2)\nCompleted testing sample_script.py\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonlammer%2Ftestpythonscript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsimonlammer%2Ftestpythonscript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsimonlammer%2Ftestpythonscript/lists"}