Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sbws
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
juga
sbws
Commits
8ee187b5
Commit
8ee187b5
authored
7 years ago
by
Matt Traudt
Browse files
Options
Downloads
Patches
Plain Diff
Fix test with hardcoded sbws version
parent
59840b2a
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tests/lib/test_v3bwfile.py
+2
-1
2 additions, 1 deletion
tests/lib/test_v3bwfile.py
with
2 additions
and
1 deletion
tests/lib/test_v3bwfile.py
+
2
−
1
View file @
8ee187b5
# -*- coding: utf-8 -*-
"""
Test generation of bandwidth measurements document (v3bw)
"""
from
sbws.lib.v3bwfile
import
V3BwHeader
from
sbws
import
__version__
as
version
def
test_v3bwheader_str
():
...
...
@@ -8,7 +9,7 @@ def test_v3bwheader_str():
timestamp
=
1524661857
header
=
V3BwHeader
(
timestamp
)
assert
str
(
header
)
==
'
{}
\n
version=1.1.0 software=sbws
'
\
'
software_version=
0.1.0
\n
'
.
format
(
timestamp
)
'
software_version=
{}
\n
'
.
format
(
timestamp
,
version
)
def
test_v3bwfile
():
...
...
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