Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
soitool
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
Container Registry
Model registry
Operate
Environments
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
bachelor-paa-bittet
soitool
Commits
01454b99
Commit
01454b99
authored
5 years ago
by
Thomas Holene Løkkeborg
Browse files
Options
Downloads
Patches
Plain Diff
#98 docstrings & liten lint fiks
parent
af7d64df
No related branches found
No related tags found
1 merge request
!73
#98 Kodefrasemodul
Pipeline
#83649
passed
5 years ago
Stage: lint
Stage: test
Stage: deploy
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
soitool/modules/module_base.py
+20
-0
20 additions, 0 deletions
soitool/modules/module_base.py
test/test_resolution_smoke_test.py
+1
-1
1 addition, 1 deletion
test/test_resolution_smoke_test.py
with
21 additions
and
1 deletion
soitool/modules/module_base.py
+
20
−
0
View file @
01454b99
...
@@ -151,6 +151,11 @@ def event_is_ctrl_plus(event):
...
@@ -151,6 +151,11 @@ def event_is_ctrl_plus(event):
----------
----------
event : QKeyEvent
event : QKeyEvent
Event to check.
Event to check.
Returns
-------
bool
True if is event is
'
CTRL +
'
"""
"""
return
(
return
(
event
.
modifiers
()
==
Qt
.
ControlModifier
and
event
.
key
()
==
Qt
.
Key_Plus
event
.
modifiers
()
==
Qt
.
ControlModifier
and
event
.
key
()
==
Qt
.
Key_Plus
...
@@ -164,6 +169,11 @@ def event_is_ctrl_minus(event):
...
@@ -164,6 +169,11 @@ def event_is_ctrl_minus(event):
----------
----------
event : QKeyEvent
event : QKeyEvent
Event to check.
Event to check.
Returns
-------
bool
True if is event is
'
CTRL -
'
"""
"""
# Underline is in practice minus in this situation. We don't know why
# Underline is in practice minus in this situation. We don't know why
return
(
return
(
...
@@ -179,6 +189,11 @@ def event_is_shift_plus(event):
...
@@ -179,6 +189,11 @@ def event_is_shift_plus(event):
----------
----------
event : QKeyEvent
event : QKeyEvent
Event to check.
Event to check.
Returns
-------
bool
True if is event is
'
SHIFT +
'
"""
"""
return
event
.
key
()
==
Qt
.
Key_Question
return
event
.
key
()
==
Qt
.
Key_Question
...
@@ -190,6 +205,11 @@ def event_is_shift_minus(event):
...
@@ -190,6 +205,11 @@ def event_is_shift_minus(event):
----------
----------
event : QKeyEvent
event : QKeyEvent
Event to check.
Event to check.
Returns
-------
bool
True if is event is
'
SHIFT -
'
"""
"""
# Underline is in practice minus in this situation. We don't know why
# Underline is in practice minus in this situation. We don't know why
return
(
return
(
...
...
This diff is collapsed.
Click to expand it.
test/test_resolution_smoke_test.py
+
1
−
1
View file @
01454b99
...
@@ -142,7 +142,7 @@ class TestModulesAcrossResolutions(unittest.TestCase):
...
@@ -142,7 +142,7 @@ class TestModulesAcrossResolutions(unittest.TestCase):
if
module
==
CodePhraseModule
:
if
module
==
CodePhraseModule
:
# CodePhraseModule needs a category injected in it's init.
# CodePhraseModule needs a category injected in it's init.
# Choosing "Tresort" because it contains words short enough
# Choosing "Tresort" because it contains words short enough
#to not expand the module beyond default width
#
to not expand the module beyond default width
module_instance
=
module
(
module_instance
=
module
(
database
=
database
,
category
=
"
Tresort
"
database
=
database
,
category
=
"
Tresort
"
)
)
...
...
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