Skip to content

Commit

Permalink
roundtrip of test.tcx (deserialize-then-serialize) in order to ensure…
Browse files Browse the repository at this point in the history
… more reliable lxml-ordered comparison

Also, no reason to store this gzipped; it makes rev-to-rev comparison much harder.
  • Loading branch information
dlenski authored and Tigge committed Jan 14, 2021
1 parent 03756f4 commit fe6b065
Show file tree
Hide file tree
Showing 5 changed files with 28,907 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ jobs:
coverage run --source=fittotcx setup.py test && coverage report -m
- name: Coveralls
uses: coverallsapp/github-action@master
uses: AndreMiras/coveralls-python-action@develop
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions setup.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[coverage:run]
relative_files = True
3 changes: 2 additions & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,12 @@
import fittotcx.program as f2t
import unittest
import gzip
import lxml.etree


class Simple(unittest.TestCase):

def test_convert(self):
converted = f2t.documenttostring(f2t.convert("tests/test.fit"))
result = gzip.open("tests/test.tcx.gz").read()
result = f2t.documenttostring(lxml.etree.parse(open("tests/test.tcx")))
self.assertEqual(converted, result)
Loading

0 comments on commit fe6b065

Please sign in to comment.