Skip to content

Commit

Permalink
Adding 'validate' calls to a couple of stationxml writing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
krischer committed Sep 7, 2016
1 parent 1988ea8 commit a715b39
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions obspy/io/stationxml/tests/test_stationxml.py
Expand Up @@ -129,7 +129,7 @@ def test_subsecond_read_and_write_minimal_file(self):
# writing of the ObsPy related tags to ease testing.
file_buffer = io.BytesIO()

inv.write(file_buffer, format="StationXML",
inv.write(file_buffer, format="StationXML", validate=True,
_suppress_module_tags=True)
file_buffer.seek(0, 0)

Expand All @@ -152,7 +152,7 @@ def test_read_and_write_full_file(self):
# writing of the ObsPy related tags to ease testing.
file_buffer = io.BytesIO()

inv.write(file_buffer, format="StationXML",
inv.write(file_buffer, format="StationXML", validate=True,
_suppress_module_tags=True)
file_buffer.seek(0, 0)

Expand Down Expand Up @@ -667,7 +667,7 @@ def test_numbers_are_written_to_poles_and_zeros(self):
inv[0][0][0].response.response_stages[0].zeros = [0 + 1j, 2 + 3j]

with io.BytesIO() as buf:
inv.write(buf, format="stationxml")
inv.write(buf, format="stationxml", validate=True)
buf.seek(0, 0)
data = buf.read().decode()

Expand Down

0 comments on commit a715b39

Please sign in to comment.