Skip to content

Commit

Permalink
feat: Adds xblockutils in tox test cases. Adds xblocktuils in pip pac…
Browse files Browse the repository at this point in the history
…kage shipping
  • Loading branch information
farhan committed Sep 8, 2023
1 parent c616622 commit bda7660
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 2 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,10 @@ def get_version(*file_paths):
'xblock.reference',
'xblock.test',
'xblock.test.django',
'xblockutils',
],
include_package_data=True,
package_data={'xblockutils': ['public/*', 'templates/*', 'templatetags/*']},
install_requires=[
'fs',
'lxml',
Expand Down
7 changes: 2 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ envlist = py38-django{32,42}, quality, docs

[pytest]
DJANGO_SETTINGS_MODULE = xblock.test.settings
addopts = --cov xblock
addopts = --cov
filterwarnings = always
norecursedirs = .* docs requirements

Expand All @@ -12,14 +12,11 @@ deps =
django32: Django>=3.2,<4.0
django42: Django>=4.2,<4.3
-r requirements/test.txt
changedir = {envsitepackagesdir}
commands =
python -Wd -m pytest {posargs:xblock}
python -Wd -m pytest {posargs}
python -m coverage xml
mv coverage.xml {toxinidir}
whitelist_externals =
make
mv

[testenv:docs]
basepython =
Expand Down

0 comments on commit bda7660

Please sign in to comment.