pytest added for dev. Move all the test run python scripts into the "test-run" folder, so we can use the tests/ folder for just tests. Setup one test for the TimestampStrings class with pytests in tests/unit/string_handling/test_timestamp_strings.py
24 lines
388 B
Python
24 lines
388 B
Python
#!/usr/bin/env -S uv run --script
|
|
|
|
"""
|
|
Test for double byte format
|
|
"""
|
|
|
|
from corelibs.string_handling.timestamp_strings import TimestampStrings
|
|
|
|
|
|
def main():
|
|
ts = TimestampStrings()
|
|
print(f"TS: {ts.timestamp_now}")
|
|
|
|
try:
|
|
ts = TimestampStrings("invalid")
|
|
except ValueError as e:
|
|
print(f"Value error: {e}")
|
|
|
|
|
|
if __name__ == "__main__":
|
|
main()
|
|
|
|
# __END__
|