Anki/pylib/tests
user1823 e546c6d11f
Improve natural unit conversion for a time b/w 360 to 365 days (#3901)
* Improve natural unit conversion for a time b/w 360 to 365 days

Previously, 363 days would be converted to 12.1 months, which is quite confusing because
- a user would think that if the value is more than 12 months, why it isn't displayed in years
- the value is actually less than a year, which is counterintuitive as 12.1 m suggests a value more than a year.

* precise

* Update time.ts to match timespan.rs

* Add another test

* Use average duration of a month instead

* Update time.ts

* Update test_schedv3.py

* Update time.test.ts
2025-04-13 14:26:34 +10:00
..
support tweaking the folder names again 2020-01-03 07:48:38 +10:00
__init__.py
shared.py
test_cards.py
test_collection.py
test_decks.py
test_exporting.py
test_find.py
test_flags.py
test_importing.py
test_latex.py
test_media.py
test_models.py
test_schedv3.py
test_stats.py
test_template.py
test_utils.py