Skip to content

Commit

Permalink
Tidy syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
ValueRaider committed Oct 10, 2022
1 parent 1c85433 commit a724585
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 1 addition & 1 deletion tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#!/usr/bin/env python
#!/usr/bin/env python
8 changes: 0 additions & 8 deletions tests/prices.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,3 @@ def test_weeklyWithEvents(self):

if __name__ == '__main__':
unittest.main()

# Run tests sequentially:
import inspect
test_src = inspect.getsource(TestPriceHistory)
unittest.TestLoader.sortTestMethodsUsing = lambda _, x, y: (
test_src.index(f"def {x}") - test_src.index(f"def {y}")
)
unittest.main(verbosity=2)

0 comments on commit a724585

Please sign in to comment.