Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Fachschaftsrat Physik TUKL
Protokoll
protokoll_skript
Commits
61ed4979
Verified
Commit
61ed4979
authored
Mar 06, 2019
by
Lorenz Steinert
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added testing for relpath
parent
b6f498ee
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
bin/module/test.py
bin/module/test.py
+14
-6
No files found.
bin/module/test.py
View file @
61ed4979
...
...
@@ -276,10 +276,14 @@ class GetFuncTest(unittest.TestCase):
"""test the get_share function"""
self
.
assertEqual
(
esme
.
get_share
(
""
,
self
.
config
),
'/tmp/python3-esme-testing/share'
)
self
.
assertEqual
(
os
.
path
.
abspath
(
esme
.
get_share
(
"/tmp/python3-esme-testing/share"
)
)
,
self
.
assertEqual
(
esme
.
get_share
(
"/tmp/python3-esme-testing/share"
),
'/tmp/python3-esme-testing/share'
)
self
.
assertEqual
(
os
.
path
.
abspath
(
esme
.
get_share
(
""
,
self
.
config
,
'/tmp/python3-esme-testing/share'
)),
self
.
assertEqual
(
esme
.
get_share
(
""
,
self
.
config
,
'/tmp/python3-esme-testing/share'
),
'/tmp/python3-esme-testing/share'
)
self
.
config
[
'PROTOKOLL'
][
'share'
]
=
'./share'
self
.
assertEqual
(
esme
.
get_share
(
"/tmp/python3-esme-testing/share"
,
self
.
config
),
'/tmp/python3-esme-testing/share'
)
self
.
assertEqual
(
self
.
info
,
[])
self
.
assertEqual
(
self
.
warning
,
[])
...
...
@@ -288,10 +292,14 @@ class GetFuncTest(unittest.TestCase):
"""test the get_path function"""
self
.
assertEqual
(
esme
.
get_path
(
""
,
self
.
config
),
'/tmp/python3-esme-testing'
)
self
.
assertEqual
(
os
.
path
.
abspath
(
esme
.
get_path
(
"/tmp/python3-esme-testing/etc/test"
)),
self
.
assertEqual
(
esme
.
get_path
(
"/tmp/python3-esme-testing/etc/test"
),
'/tmp/python3-esme-testing'
)
self
.
assertEqual
(
esme
.
get_path
(
""
,
self
.
config
,
'/tmp/python3-esme-testing'
),
'/tmp/python3-esme-testing'
)
self
.
assertEqual
(
os
.
path
.
abspath
(
esme
.
get_path
(
""
,
self
.
config
,
'/tmp/python3-esme-testing'
)),
self
.
config
[
'PROTOKOLL'
][
'share'
]
=
'.'
self
.
assertEqual
(
esme
.
get_path
(
"/tmp/python3-esme-testing/etc"
,
self
.
config
),
'/tmp/python3-esme-testing'
)
self
.
assertEqual
(
self
.
info
,
[])
self
.
assertEqual
(
self
.
warning
,
[])
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment