Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
lofar-station-calibration
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
David McKenna
lofar-station-calibration
Commits
4d08aee0
Commit
4d08aee0
authored
1 year ago
by
David McKenna
Browse files
Options
Downloads
Patches
Plain Diff
Init repo from cookiecutter template
parent
698ec45c
No related branches found
No related tags found
No related merge requests found
Pipeline
#72475
failed
1 year ago
Stage: prepare
Stage: lint
Stage: test
Stage: package
Stage: integration
Pipeline: lofar-station-calibration
#72476
Changes
22
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
tests/test_cool_module.py
+16
-0
16 additions, 0 deletions
tests/test_cool_module.py
tox.ini
+58
-0
58 additions, 0 deletions
tox.ini
with
74 additions
and
0 deletions
tests/test_cool_module.py
0 → 100644
+
16
−
0
View file @
4d08aee0
# Copyright (C) 2023 ASTRON (Netherlands Institute for Radio Astronomy)
# SPDX-License-Identifier: Apache-2.0
"""
Testing of the Cool Module
"""
from
unittest
import
TestCase
from
lofar
-
station
-
calibration
.
cool_module
import
greeter
class
TestCoolModule
(
TestCase
):
"""
Test Case of the Cool Module
"""
def
test_greeter
(
self
):
"""
Testing that the greeter does not crash
"""
greeter
()
self
.
assertEqual
(
2
+
2
,
4
)
This diff is collapsed.
Click to expand it.
tox.ini
0 → 100644
+
58
−
0
View file @
4d08aee0
[tox]
# Generative environment list to test all supported Python versions
envlist
=
py3{7,8,9,10},black,pep8,pylint
minversion
=
3.18.0
[testenv]
usedevelop
=
True
package
=
wheel
wheel_build_env
=
.pkg
setenv
=
LANGUAGE
=
en_US
LC_ALL
=
en_US.UTF-8
PYTHONWARNINGS
=
default::DeprecationWarning
deps
=
-r{toxinidir}/requirements.txt
-r{toxinidir}/tests/requirements.txt
commands
=
{envpython}
--version
{envpython}
-m
pytest
[testenv:coverage]
commands
=
{envpython}
--version
{envpython}
-m
pytest
--cov-report
term
--cov-report
xml
--cov-report
html
--cov
=
lofar-station-calibration
# Use generative name and command prefixes to reuse the same virtualenv
# for all linting jobs.
[testenv:{pep8,black,pylint,format}]
usedevelop
=
False
envdir
=
{toxworkdir}/linting
commands
=
pep8:
{envpython}
-m
flake8
--version
pep8:
{envpython}
-m
flake8
lofar-station-calibration
tests
black:
{envpython}
-m
black
--version
black:
{envpython}
-m
black
--check
--diff
lofar-station-calibration
tests
pylint:
{envpython}
-m
pylint
--version
pylint:
{envpython}
-m
pylint
lofar-station-calibration
tests
format:
{envpython}
-m
autopep8
-v
-aa
--in-place
--recursive
lofar-station-calibration
format:
{envpython}
-m
autopep8
-v
-aa
--in-place
--recursive
tests
format:
{envpython}
-m
black
-v
lofar-station-calibration
tests
[testenv:docs]
allowlist_externals
=
sh
; unset LC_ALL / LANGUAGE from testenv, would fail sphinx otherwise
setenv
=
deps
=
-r{toxinidir}/requirements.txt
-r{toxinidir}/docs/requirements.txt
changedir
=
{toxinidir}
commands
=
sh
docs/cleanup.sh
sphinx-build
-b
html
docs/source
docs/build/html
[testenv:build]
usedevelop
=
False
commands
=
{envpython} -m build
This diff is collapsed.
Click to expand it.
Prev
1
2
Next
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment