Skip to content

Commit

Permalink
[test] Move pytest and its dependencies from make apps to `make tes…
Browse files Browse the repository at this point in the history
…t_prep`
  • Loading branch information
wing2fly committed Jan 10, 2025
1 parent e119138 commit 11b0022
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 5 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ default:
@echo ' clean : Remove desktop build products'
@echo ' distclean : Remove desktop and thirdparty build products'
# <<<< DEV ONLY
@echo ' doc : Build documentation'
@echo ' doc : Build documentation'
@echo ' prod : Generate a tar file for production distribution'
@echo ' locales : Extract strings and update dictionary of each locale'
@echo ' ace : Builds the Ace Editor tool'
Expand All @@ -108,6 +108,13 @@ all: default
# <<<< DEV ONLY
include Makefile.tarball

###################################
# Build docs (unused)
###################################
.PHONY: test_prep
test_prep: apps
@$(ENV_PIP) install -r $(REQUIREMENT_TEST_FILE)

###################################
# Build docs (unused)
###################################
Expand Down
1 change: 1 addition & 0 deletions Makefile.vars
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,7 @@ PYBABEL := $(ROOT)/build/env/bin/pybabel
##############################
REQUIREMENT_FILE := $(ROOT)/desktop/core/requirements.txt
REQUIREMENT_DOT_FILE := $(ROOT)/desktop/core/.requirements
REQUIREMENT_TEST_FILE := $(ROOT)/desktop/core/test_requirements.txt
NAVOPTAPI_WHL := $(ROOT)/desktop/core/wheels/navoptapi-1.0.0-py3-none-any.whl

##############################
Expand Down
4 changes: 0 additions & 4 deletions desktop/core/base_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,8 @@ openpyxl==3.0.9
phoenixdb==1.2.1
prompt-toolkit==3.0.39
protobuf==3.20.3
py==1.11.0
pyarrow==17.0.0
pyformance==0.3.2
pytest==8.1.1
pytest-django==4.8.0
pytest-html==4.1.1
python-dateutil==2.8.2
python-daemon==2.2.4
python-ldap==3.4.3
Expand Down
3 changes: 3 additions & 0 deletions desktop/core/test_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
pytest==8.1.1
pytest-django==4.8.0
pytest-html==4.1.1

0 comments on commit 11b0022

Please sign in to comment.