docs: fix typos
found via `codespell -L copie,datas,pres,fo,tooks,noo,ue,ket,frop`
This commit is contained in:
parent
919c84fb5a
commit
d2ef23fcb4
50 changed files with 69 additions and 69 deletions
|
@ -32,7 +32,7 @@ def test() -> None:
|
|||
|
||||
assert len(tp) == 1 # should be unique
|
||||
|
||||
# 2.5 K + 4 K datapoints, somwhat overlapping
|
||||
# 2.5 K + 4 K datapoints, somewhat overlapping
|
||||
assert len(res2020) < 6000
|
||||
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ def test_dynamic_configuration(notes: Path) -> None:
|
|||
from my.core.cfg import tmp_config
|
||||
with tmp_config() as C:
|
||||
C.orgmode = NS(paths=[notes])
|
||||
# TODO ugh. this belongs to tz provider or global config or someting
|
||||
# TODO ugh. this belongs to tz provider or global config or something
|
||||
C.weight = NS(default_timezone=pytz.timezone('Europe/London'))
|
||||
|
||||
from my.body.weight import from_orgmode
|
||||
|
|
|
@ -72,7 +72,7 @@ def test_denylist(tmp_path: Path) -> None:
|
|||
d.deny(key="dt", value=datetime(2020, 2, 1))
|
||||
|
||||
# test internal behavior, _deny_raw_list should have been updated,
|
||||
# but _deny_map doesnt get updated by a call to .deny
|
||||
# but _deny_map doesn't get updated by a call to .deny
|
||||
#
|
||||
# if we change this just update the test, is just here to ensure
|
||||
# this is the behaviour
|
||||
|
|
|
@ -98,7 +98,7 @@ def test_zippath() -> None:
|
|||
], rpaths
|
||||
|
||||
|
||||
# TODO hmm this doesn't work atm, wheras Path does
|
||||
# TODO hmm this doesn't work atm, whereas Path does
|
||||
# not sure if it should be defensive or something...
|
||||
# ZipPath('doesnotexist')
|
||||
# same for this one
|
||||
|
|
|
@ -19,7 +19,7 @@ def test_dynamic_config_1(tmp_path: Path) -> None:
|
|||
assert item1.username == 'user'
|
||||
|
||||
|
||||
# exactly the same test, but using a different config, to test out the behavious w.r.t. import order
|
||||
# exactly the same test, but using a different config, to test out the behaviour w.r.t. import order
|
||||
def test_dynamic_config_2(tmp_path: Path) -> None:
|
||||
# doesn't work without it!
|
||||
# because the config from test_dybamic_config_1 is cached in my.demo.demo
|
||||
|
|
|
@ -38,7 +38,7 @@ PARAMS = [
|
|||
def prepare(request):
|
||||
dotpolar = request.param
|
||||
class user_config:
|
||||
if dotpolar != '': # defaul
|
||||
if dotpolar != '': # default
|
||||
polar_dir = Path(ROOT / dotpolar)
|
||||
defensive = False
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ from .common import testdata
|
|||
|
||||
|
||||
def test_module(with_config) -> None:
|
||||
# TODO crap. if module is imported too early (on the top level, it makes it super hard to overrride config)
|
||||
# TODO crap. if module is imported too early (on the top level, it makes it super hard to override config)
|
||||
# need to at least detect it...
|
||||
from my.pdfs import annotations, annotated_pdfs
|
||||
|
||||
|
|
|
@ -52,7 +52,7 @@ def test_tz() -> None:
|
|||
tz = LTZ._get_tz(datetime.min)
|
||||
assert tz is not None
|
||||
else:
|
||||
# seems this fails because windows doesnt support same date ranges
|
||||
# seems this fails because windows doesn't support same date ranges
|
||||
# https://stackoverflow.com/a/41400321/
|
||||
with pytest.raises(OSError):
|
||||
LTZ._get_tz(datetime.min)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue