Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gustaphe committed Nov 22, 2020
1 parent 075f233 commit ede9e96
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions LaTeXDatax/datax.py
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ def printvariables(f,**variables):
"""
Do `printvariable` for each of the given keyword arguments.
"""
print('% File auto-generated by LaTeXDatax.py. Will be overwritten.',file=f)
for tag,variable in variables.items():
printvariable(tag,variable,f)
print('% File auto-generated by LaTeXDatax.py. Will be overwritten.',file=f)
for tag,variable in variables.items():
printvariable(tag,variable,f)

def datax(filename="data.tex",**variables):
"""
Expand Down
8 changes: 6 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
.PHONY: clean all
.PHONY: clean all test

all: README.html
all: README.html test

test: tests/test_LaTeXDatax.py LaTeXDatax/datax.py
pip install .
python $<

README.html : README.md
md2html --github $< -o $@
Expand Down
4 changes: 0 additions & 4 deletions tests/test_LaTeXDatax.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,6 @@ def test_datax(self):
\\pgfkeyssetvalue{/datax/d}{\\SI{3.1}{\\meter}}
\\pgfkeyssetvalue{/datax/e}{\\num{3.1}}
"""
print("written:")
print(written)
print("target:")
print(target)
self.assertEqual(written,target)

if __name__ == '__main__':
Expand Down

0 comments on commit ede9e96

Please sign in to comment.