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_bar_format = '{desc}{percentage:3.0f}%|{bar}| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, {rate_fmt}]' | |
red_bar_format = '{desc}{percentage:3.0f}%|\033[91m{bar}\033[00m| {n_fmt}/{total_fmt} [{elapsed}<{remaining}, {rate_fmt}]' |
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
@patch("module.file.BASE_PATH", 'tests/fixtures') | |
def test_organisation_to_es_document(): | |
# do the test normally | |
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
def do_it(token, logger): | |
try: | |
tm = AMODEL.objects.get(unique_id=token) | |
tm.delete() | |
except Exception as e: | |
logger.error("...") | |
class FakeLogger: | |
def __init__(self): |
NewerOlder