Commit 628d21a9 authored by Matt Traudt's avatar Matt Traudt
Browse files

Switch header to one line

parent 09010c5d
......@@ -30,6 +30,6 @@ class V3BwHeader(object):
def __str__(self):
"""Return header string following spec version 1.1.0."""
frmt = '{timestamp}\nversion={version}\nsoftware={software}\n' \
frmt = '{timestamp} version={version} software={software} ' \
'software_version={software_version}\n'
return frmt.format(**self.__dict__)
......@@ -7,7 +7,7 @@ import logging
log = logging.getLogger(__name__)
NUM_LINES_HEADER = 4
NUM_LINES_HEADER = 1
def test_generate_no_dotsbws(tmpdir, caplog, parser):
......
......@@ -7,7 +7,7 @@ def test_v3bwheader_str():
"""Test header str"""
timestamp = 1524661857
header = V3BwHeader(timestamp)
assert str(header) == '{}\nversion=1.1.0\nsoftware=sbws\n' \
assert str(header) == '{} version=1.1.0 software=sbws ' \
'software_version=0.1.0\n'.format(timestamp)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment