tests: Implement mock weechat module and add some color tests.
This commit is contained in:
parent
404f785f21
commit
fc6a6e9da9
5 changed files with 165 additions and 35 deletions
6
Makefile
6
Makefile
|
|
@ -1,7 +1,8 @@
|
|||
.PHONY: install install-lib phony
|
||||
.PHONY: install install-lib phony test
|
||||
|
||||
WEECHAT_HOME ?= $(HOME)/.weechat
|
||||
PREFIX ?= $(WEECHAT_HOME)
|
||||
PYTHON ?= python
|
||||
|
||||
lib := $(patsubst matrix/%.py, $(DESTDIR)$(PREFIX)/python/matrix/%.py, \
|
||||
$(wildcard matrix/*.py))
|
||||
|
|
@ -15,3 +16,6 @@ phony:
|
|||
|
||||
$(DESTDIR)$(PREFIX)/python/matrix/%.py: matrix/%.py phony
|
||||
install -Dm644 $< $@
|
||||
|
||||
test:
|
||||
$(PYTHON) -m pytest
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue