Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
pystencils-sfg
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pycodegen
pystencils-sfg
Commits
eff5bae1
Commit
eff5bae1
authored
6 months ago
by
Frederik Hennig
Browse files
Options
Downloads
Patches
Plain Diff
fix tests in CI
parent
24f4015f
No related branches found
No related tags found
1 merge request
!2
Refactor Configuration System & Extend Documentation
Pipeline
#70677
passed
6 months ago
Stage: Code Quality
Stage: Tests
Stage: Documentation
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
tests/data/project_config.py
+1
-1
1 addition, 1 deletion
tests/data/project_config.py
tests/generator/test_config.py
+1
-1
1 addition, 1 deletion
tests/generator/test_config.py
tests/integration/test_cli.py
+1
-1
1 addition, 1 deletion
tests/integration/test_cli.py
with
3 additions
and
3 deletions
tests/data/project_config.py
+
1
−
1
View file @
eff5bae1
...
...
@@ -4,7 +4,7 @@ from pystencilssfg import SfgConfig
def
configure_sfg
(
cfg
:
SfgConfig
):
cfg
.
codestyle
.
indent_width
=
3
cfg
.
clang_format
.
code_style
=
"
llvm
"
cfg
.
clang_format
.
force
=
True
cfg
.
clang_format
.
skip
=
True
cfg
.
output_directory
=
"
generated_sources
"
cfg
.
outer_namespace
=
"
myproject
"
cfg
.
extensions
.
header
=
"
hpp
"
...
...
This diff is collapsed.
Click to expand it.
tests/generator/test_config.py
+
1
−
1
View file @
eff5bae1
...
...
@@ -79,7 +79,7 @@ def test_from_commandline(sample_config_module):
assert
cfg
.
codestyle
.
indent_width
==
3
assert
cfg
.
clang_format
.
code_style
==
"
llvm
"
assert
cfg
.
clang_format
.
force
is
True
assert
cfg
.
clang_format
.
skip
is
True
assert
(
cfg
.
output_directory
==
"
gen_sources
"
)
# value from config module overridden by commandline
...
...
This diff is collapsed.
Click to expand it.
tests/integration/test_cli.py
+
1
−
1
View file @
eff5bae1
...
...
@@ -25,7 +25,7 @@ def test_list_files():
def
test_list_files_headeronly
():
output_dir
=
"
/my/output/directory
"
args
=
[
"
sfg-cli
"
,
"
python
"
,
"
-m
"
,
"
pystencilssfg
"
,
"
list-files
"
,
"
--sfg-output-dir
"
,
output_dir
,
...
...
This diff is collapsed.
Click to expand it.
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