Closed jrg94 closed 2 years ago
Alright, so the current solution is not going to work for Linux:
=================================== FAILURES ===================================
_______________________ test_sample_program_date_created _______________________
def test_sample_program_date_created():
test = SampleProgram(TEST_FILE_PATH, TEST_FILE_NAME, TEST_LANG)
> assert test.date_created() == 1628225405.679159
E assert 1636042307.840884 == 1628225405.679159
E + where 1636042307.840884 = <bound method SampleProgram.date_created of <subete.repo.SampleProgram object at 0x7f1206dd8320>>()
E + where <bound method SampleProgram.date_created of <subete.repo.SampleProgram object at 0x7f1206dd8320>> = <subete.repo.SampleProgram object at 0x7f1206dd8320>.date_created
tests/test_sample_program.py:30: AssertionError
I checked the date and the most recent metadata change appears to be when the file was pulled from Git. That's not what we want since it would change every time Subete is run.
I think the solution is to use Git. That sort of defeats the original design, so I'll have to think about it.
I'm interested in running some unit tests on this current change to see what Linux says about the new test.