Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
Add some test and prelimary code
Browse files Browse the repository at this point in the history
  • Loading branch information
tobiasdiez committed Mar 27, 2022
1 parent 55a711e commit f67476f
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@
"pkgs/sagemath-objects/sage": true,
"pkgs/sagemath-standard/sage": true,
},
"python.testing.pytestPath": "./sage -t",
"python.testing.pytestEnabled": true,
"python.testing.pytestArgs": [
"src"
"src/test_doctests.py",
"--rootdir=src/sage",
"-c=src/tox.ini",
"--doctest-modules",
],
"python.testing.unittestEnabled": false,
}
11 changes: 11 additions & 0 deletions src/test_doctest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
def something():
""" a doctest in a docstring
>>> something()
42
some other doctest
>>> something() + 1
43
"""
return 42
1 change: 1 addition & 0 deletions src/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,7 @@ commands = codespell \
[pytest]
python_files = *_test.py
norecursedirs = local prefix venv build pkgs .git src/sage/pkgs src/doc src/bin src/sage/src/sage_setup
[coverage:run]
source = sage
Expand Down

0 comments on commit f67476f

Please sign in to comment.