Revision 16eaeb86
Added by koszko over 1 year ago
| src/test/test_hydrilla_builder.py | ||
|---|---|---|
| 16 | 16 |
|
| 17 | 17 |
from jsonschema import ValidationError |
| 18 | 18 |
|
| 19 |
from hydrilla_builder import build |
|
| 19 |
from hydrilla import util as hydrilla_util |
|
| 20 |
from hydrilla.builder import build |
|
| 20 | 21 |
|
| 21 | 22 |
here = Path(__file__).resolve().parent |
| 22 | 23 |
|
| ... | ... | |
| 187 | 188 |
settings.srcdir = tmpdir / 'srcdir_copy' |
| 188 | 189 |
|
| 189 | 190 |
with open(settings.srcdir / 'index.json', 'rt') as file_handle: |
| 190 |
obj = json.loads(build.strip_json_comments(file_handle.read()))
|
|
| 191 |
obj = json.loads(hydrilla_util.strip_json_comments(file_handle.read()))
|
|
| 191 | 192 |
|
| 192 | 193 |
contents = modify_cb(settings, obj) |
| 193 | 194 |
|
| ... | ... | |
| 438 | 439 |
|
| 439 | 440 |
with pytest.raises(error_type): |
| 440 | 441 |
build.Build(settings.srcdir, settings.index_json_path)\ |
| 441 |
.write_package_files(dstdir) |
|
| 442 |
.write_package_files(dstdir) |
|
Also available in: Unified diff
move to a namespace package under 'hydrilla'