Skip to content
Snippets Groups Projects
Commit cb6403ad authored by Florian Spreckelsen's avatar Florian Spreckelsen
Browse files

Merge branch 'f-fix-spss-script' into 'dev'

Fix spss script

See merge request !202
parents bd2b12a2 36e94783
No related branches found
No related tags found
2 merge requests!217TST: Make NamedTemporaryFiles Windows-compatible,!202Fix spss script
Pipeline #58330 passed
......@@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
example be used by CustomConverters.
- ZipFileConverter that opens zip files and exposes their contents as
File and Directory structure elements.
- `linkahead-crawler` script as alias for `caosdb-crawler`.
### Changed ###
......@@ -25,6 +26,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed ###
- `spss_to_datamodel` script works again.
### Security ###
### Documentation ###
......
......@@ -39,8 +39,9 @@ per-file-ignores = __init__.py:F401
[options.entry_points]
console_scripts =
linkahead-crawler = caoscrawler.crawl:main
caosdb-crawler = caoscrawler.crawl:main
spss_to_datamodel = caoscrawler.conv_impl.spss:spss_to_datamodel_main
spss_to_datamodel = caoscrawler.converters.spss:spss_to_datamodel_main
csv_to_datamodel = caoscrawler.scripts.generators:csv_to_datamodel_main
[options.extras_require]
......
#!/usr/bin/env python3
# This file is a part of the LinkAhead project.
#
# Copyright (C) 2024 IndiScale GmbH <www.indiscale.com>
# Copyright (C) 2024 Daniel Hornung <d.hornung@indiscale.com>
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as
# published by the Free Software Foundation, either version 3 of the
# License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
"""Test if the scripts work as expected.
"""
from subprocess import run
SCRIPTS = [
"linkahead-crawler",
"caosdb-crawler",
"spss_to_datamodel",
"csv_to_datamodel",
]
def test_script_loading():
"""Run the scripts with "-h"."""
for script in SCRIPTS:
run([script, "-h"], check=True)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment