{"id":51262565,"url":"https://github.com/exasol/pytest-slc","last_synced_at":"2026-06-29T13:02:00.685Z","repository":{"id":338000570,"uuid":"1156050722","full_name":"exasol/pytest-slc","owner":"exasol","description":"Fixture for managing script language containers","archived":false,"fork":false,"pushed_at":"2026-06-24T09:14:34.000Z","size":737,"stargazers_count":0,"open_issues_count":6,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-24T10:18:27.505Z","etag":null,"topics":["exasol","exasol-integration","github","internal-tools-we-published"],"latest_commit_sha":null,"homepage":"https://exasol.github.io/pytest-slc/","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/exasol.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-02-12T07:46:52.000Z","updated_at":"2026-06-24T09:12:18.000Z","dependencies_parsed_at":"2026-02-12T19:00:32.243Z","dependency_job_id":null,"html_url":"https://github.com/exasol/pytest-slc","commit_stats":null,"previous_names":["exasol/pytest-slc"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/exasol/pytest-slc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exasol%2Fpytest-slc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exasol%2Fpytest-slc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exasol%2Fpytest-slc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exasol%2Fpytest-slc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/exasol","download_url":"https://codeload.github.com/exasol/pytest-slc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/exasol%2Fpytest-slc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34927687,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-29T02:00:05.398Z","response_time":58,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["exasol","exasol-integration","github","internal-tools-we-published"],"created_at":"2026-06-29T13:01:59.870Z","updated_at":"2026-06-29T13:02:00.679Z","avatar_url":"https://github.com/exasol.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# pytest-exasol-slc Plugin\n\nThe `pytest-exasol-slc` plugin provides a pytest fixtures for building and uploading a script language container\ninto the database. The fixtures are backend agnostic. They run for the selected backends\n(see the documentation for the `pytest-exasol-backend` plugin).\n\n## Installation\n\nThe pytest-exasol-slc plugin can be installed using pip:\n\n```shell\npip install pytest-exasol-slc\n```\n\n## Usage in Tests\n\nBelow is an example of a test that requires a script language container to be built and deployed in the database.\nThe example test case overrides two fixtures used internally by the fixture `deployed_slc` in this plugin:\n* Fixture `language_alias` provides a meaningful name for the language alias.\n* Fixture `slc_builder` prepares the structure of the SLC used in the example test case.\n\nThe language container will be activated with value returned by the fixture `language_alias`.\nNote, that by default the test will run twice - once for each backend.\n\n```python\nimport pytest\n\n@pytest.fixture(scope='session')\ndef language_alias():\n    return \"MY_LANGUAGE_ALIAS\"\n\n@pytest.fixture(scope='session')\ndef slc_builder(use_onprem, use_saas):\n    if use_onprem or use_saas:\n        with language_container_factory() as container_builder:\n            yield container_builder\n    else:\n        yield None\n\ndef test_something_with_slc(deployed_slc):\n    ...\n```\n\nAlternatively, the language container can be deployed using the function version of this fixture. The function\ncan be called multiple times providing an opportunity to activate the language container with different\naliases.\n\n```python\nimport pytest\n\n@pytest.fixture(scope='session')\ndef slc_builder(use_onprem, use_saas):\n    if use_onprem or use_saas:\n        with language_container_factory() as container_builder:\n            yield container_builder\n    else:\n        yield None\n\ndef test_something_with_slc(deploy_slc):\n    deploy_slc(\"MY_LANGUAGE_ALIAS\")\n    ...\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexasol%2Fpytest-slc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexasol%2Fpytest-slc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexasol%2Fpytest-slc/lists"}