Project

General

Profile

Download (665 Bytes) Statistics
| Branch: | Tag: | Revision:

hydrilla-builder / src / test / test_hydrilla_builder.py @ 5ac7ec33

1
# SPDX-License-Identifier: CC0-1.0
2

    
3
# Copyright (C) 2022 Wojtek Kosior <koszko@koszko.org>
4
#
5
# Available under the terms of Creative Commons Zero v1.0 Universal.
6

    
7
import pytest
8

    
9
from tempfile import TemporaryDirectory
10
from pathlib import Path
11

    
12
here = Path(__file__).resolve().parent
13

    
14
@pytest.fixture()
15
def tmpdir():
16
    with TemporaryDirectory() as tmpdir:
17
        yield tmpdir
18

    
19
def test_build(tmpdir):
20
    """Build the sample source package and verify the produced files."""
21
    from hydrilla_builder.build import Build
22

    
23
    build = Build(here / 'source-package-example', Path('index.json'))
24
    build.write_package_files(Path(tmpdir))
25

    
26
    # TODO: verify results
(2-2/2)