python3Packages.datasette: minimize test time
This commit is contained in:
parent
cd76c92d80
commit
67f67075c0
|
@ -73,19 +73,26 @@ buildPythonPackage rec {
|
||||||
--replace "PyYAML~=5.3" "PyYAML"
|
--replace "PyYAML~=5.3" "PyYAML"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
# test_html is very slow
|
# takes 30-180 mins to run entire test suite, not worth the cpu resources, slows down reviews
|
||||||
# test_black fails on darwin
|
# with pytest-xdist, it still takes around 10mins with 32 cores
|
||||||
dontUseSetuptoolsCheck = true;
|
# just run the messages tests, as this should give some indictation of correctness
|
||||||
pytestFlagsArray = [
|
pytestFlagsArray = [
|
||||||
"--ignore=tests/test_html.py"
|
"tests/test_messages.py"
|
||||||
"--ignore=tests/test_docs.py"
|
|
||||||
"--ignore=tests/test_black.py"
|
|
||||||
];
|
];
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
"facet"
|
"facet"
|
||||||
"_invalid_database" # checks error message when connecting to invalid database
|
"_invalid_database" # checks error message when connecting to invalid database
|
||||||
];
|
];
|
||||||
pythonImportsCheck = [ "datasette" ];
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"datasette"
|
||||||
|
"datasette.cli"
|
||||||
|
"datasette.app"
|
||||||
|
"datasette.database"
|
||||||
|
"datasette.renderer"
|
||||||
|
"datasette.tracer"
|
||||||
|
"datasette.plugins"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "An instant JSON API for your SQLite databases";
|
description = "An instant JSON API for your SQLite databases";
|
||||||
|
|
Loading…
Reference in a new issue