This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| default: &DEFAULT | |
| URL: stooges.com | |
| throw_pies?: true | |
| stooges: &stooge_list | |
| larry: first_stooge | |
| moe: second_stooge | |
| curly: third_stooge | |
| development: | |
| <<: *DEFAULT |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pytest | |
| from django.core.cache import caches | |
| @pytest.fixture() | |
| def django_caches(): | |
| yield caches | |
| # finalizer | |
| for cache in caches.all(): | |
| cache.clear() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .PHONY: tag | |
| SHELL=bash | |
| # assuming v0.1.0 is the only tag in the repo | |
| tag: nr_of_existing_tags := $(shell git tag | grep "\<${TAG}\>" | wc -l) | |
| tag: | |
| @echo ${nr_of_existing_tags} | |
| ifeq (1,$(nr_of_existing_tags)) | |
| @echo tag ${TAG} already present ${nr_of_existing_tags} | |
| else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #### Tie display strings | |
| class OnTieBothDisplayed(object): | |
| def tie_str(self): | |
| return '{}-All'.format(self) | |
| def __str__(self): | |
| return self.__class__.__name__ |
OlderNewer