Jim Paris
9126980ed4
Add tests for bash completion; fix Unicode bug that turned up
Note that argcomplete is also now required.
3 years ago
Jim Paris
ea051c85b3
Improve test coverage for CORS_allow
3 years ago
Jim Paris
d8294469cf
Fix diskusage test coverage
3 years ago
Jim Paris
96eadb0577
Add test for WSGI server, and fix a str/bytes bug that it found
3 years ago
Jim Paris
fb524c649f
Remove old workaround for some nosetests multiprocessing bug
3 years ago
Jim Paris
19a34a07a4
Always use pyximport, since we now require cython.
This is optional and helps with development. If we ever need/want to
support systems without Cython, this can be wrapped in a
try/except:pass block (and the .c files can be included in the
MANIFEST.in so that source distributions include them).
3 years ago
Jim Paris
d8df6f515f
Update setup.py and build instructions
This is a pretty big simplification: the user should first use pip to
install everything in `requirements.txt`, and we no longer try to
cater to cases where Cython is missing, etc.
3 years ago
Jim Paris
90ee127c87
Move MANIFEST.in out from setup.py into its own file
This was in setup.py to reduce litter in the root directory, but it's
simpler to keep it how it's supposed to be.
3 years ago
Jim Paris
0b631b7dea
Use built-in json module rather than external simplejson
simplejson was there for python <= 2.6 compatibility.
It's not needed now, and installing it with pip can lead to segfaults
because pip is dumb.
(see e.g. https://github.com/simplejson/simplejson/issues/114 )
3 years ago
Jim Paris
f587518adb
Improve test coverage
3 years ago
Jim Paris
efbb2665fe
Improve test coverage
3 years ago
Jim Paris
544413018c
Add some thread safety tests
We don't actually use nilmdb.utils.threadsafety.verify_proxy in the
main NilmDB code, but it's useful for finding errors.
It found an issue with __getattr__ in SerializerProxy which
(1) can't be avoided?
(2) is now commented in the code
(3) shouldn't matter in real use
3 years ago
Jim Paris
322b0ec423
Remove impossible error in serializer and test with a C module
3 years ago
Jim Paris
f3833d9b20
Use pip fallocate package rather than hand-rolling
3 years ago
Jim Paris
735c8497af
Change == to >= in requirements.txt, so we aren't stuck in the past
3 years ago
Jim Paris
7252e40c2d
Move dependencies into requirements.txt
3 years ago
Jim Paris
caa5604d81
Improve code coverage
3 years ago
Jim Paris
6624e8dab6
Remove another "no cover"
3 years ago
Jim Paris
d907638858
Remove unnecessary check for private members in serializer
__getattr__ is only called for attributes that don't exist; callers
should never purposely see the private __* symbols, so we don't need
to check for them.
3 years ago
Jim Paris
39e66fe38c
Test exclusive_lock better
3 years ago
Jim Paris
ba915bb290
Use os.replace instead of os.remove; remove a "no cover"
3 years ago
Jim Paris
3f0b8e50a2
Split off misc tests; add coverage for failure case in exclusive_lock
3 years ago
Jim Paris
f93edc469c
Remove dummy lock functions from lock.py
3 years ago
Jim Paris
087fb39475
Add tests for two more "no cover" blocks
3 years ago
Jim Paris
8b4acf41d6
Test previously untested code
3 years ago
Jim Paris
32a76ccf3f
Clean up __pycache__ on "make clean"
3 years ago
Jim Paris
5f9367bdd3
Remove old python 2 code
3 years ago
Jim Paris
5848d03507
Fix install instructions for python3
3 years ago
Jim Paris
36dc448f02
Remove old files from .coveragerc exclusions
3 years ago
Jim Paris
2764283f59
Improve test coverage
3 years ago
Jim Paris
2d0c3f7868
Improve test coverage for interval.py
3 years ago
Jim Paris
cadba9fbba
Fix branch coverage
3 years ago
Jim Paris
2d200a86c9
Improve test coverage
3 years ago
Jim Paris
640c1bc95e
No need to catch exceptions here; they shouldn't occur
3 years ago
Jim Paris
b574fc86f4
Mark branch as not taken in test suite
3 years ago
Jim Paris
02ee18c410
Improve test coverage
3 years ago
Jim Paris
d1e241a213
Test calling NilmDB.close twice to improve coverage
3 years ago
Jim Paris
c5c7f638e7
Allow NilmDB.close to be called twice
3 years ago
Jim Paris
a1218fd20b
Remove superfluous conditional
3 years ago
Jim Paris
c58a933d21
Improve branch coverage
3 years ago
Jim Paris
7874e1ebfa
Improve coverage
3 years ago
Jim Paris
79b410a85b
Remove conditional as we know these args are always present
3 years ago
Jim Paris
6645395924
Improve branch coverage for numpyclient
3 years ago
Jim Paris
beb3eadd38
Include branches in coverage report
3 years ago
Jim Paris
edf4568e8f
Fix error in interval comparisons; add coverage
3 years ago
Jim Paris
a962258b2a
Improve coverage for bulkdata
3 years ago
Jim Paris
fa011559c1
Fix bulkdata bug checking for paths ending in /
3 years ago
Jim Paris
349eec3942
Improve coverage for client
3 years ago
Jim Paris
99500f3a88
Update coverage config
3 years ago
Jim Paris
54eccb17aa
Adjust test for new argparse output
3 years ago