diff options
author | Wojtek Kosior <koszko@koszko.org> | 2022-02-04 12:08:25 +0100 |
---|---|---|
committer | Wojtek Kosior <koszko@koszko.org> | 2022-02-04 14:34:12 +0100 |
commit | 5ac7ec33fe4b90110faaab3fb178afa9e6de812c (patch) | |
tree | 7a3cbd419928880cc1aec0cbcb7693a975d54e6d /src/test/test_hydrilla_builder.py | |
download | hydrilla-builder-5ac7ec33fe4b90110faaab3fb178afa9e6de812c.tar.gz hydrilla-builder-5ac7ec33fe4b90110faaab3fb178afa9e6de812c.zip |
initial commit
Diffstat (limited to 'src/test/test_hydrilla_builder.py')
-rw-r--r-- | src/test/test_hydrilla_builder.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/src/test/test_hydrilla_builder.py b/src/test/test_hydrilla_builder.py new file mode 100644 index 0000000..b054192 --- /dev/null +++ b/src/test/test_hydrilla_builder.py @@ -0,0 +1,26 @@ +# SPDX-License-Identifier: CC0-1.0 + +# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org> +# +# Available under the terms of Creative Commons Zero v1.0 Universal. + +import pytest + +from tempfile import TemporaryDirectory +from pathlib import Path + +here = Path(__file__).resolve().parent + +@pytest.fixture() +def tmpdir(): + with TemporaryDirectory() as tmpdir: + yield tmpdir + +def test_build(tmpdir): + """Build the sample source package and verify the produced files.""" + from hydrilla_builder.build import Build + + build = Build(here / 'source-package-example', Path('index.json')) + build.write_package_files(Path(tmpdir)) + + # TODO: verify results |