tests: Implement mock weechat module and add some color tests.

This commit is contained in:
poljar (Damir Jelić) 2018-03-02 22:58:43 +01:00
parent 404f785f21
commit fc6a6e9da9
5 changed files with 165 additions and 35 deletions

View file

@ -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