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
#!/usr/bin/env python3 | |
import itertools | |
import math | |
import os | |
import unittest | |
from typing import List, Optional | |
import yaml | |
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
ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDOHPdA4eFaXbwl8A7HPNXZTeHQJ701yvtxKNcAOvR1ICJP0Fx7xXXHieXh58Nr35hI/fyFqKEFHIT3IAcQgvinJ55cBEGcLCr5OhWsQfiwlvYHaX818zhZnKWZVvG1mDz5JMmGWa8XKDMGJynwZJ0vacAukvcREGnU/yVdnVGFLbmRrjCGMhZVS5HFuVkBcBw9XYOtEtE1vRLCcr+Wa9SKKe0lmKln8mlxkZHbWQLfMmauc9NPEHe32SBccAHL3dfLTGN2Bf7igJgRc4qpi4dqIxwVPFPu39TJSBnpOxRvjK+xdtfWm0MBVdu+5gZvg24Bv/SsT3wZBAOSH0eYdKvv andy@andy-Inspiron-3721 |
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
from unittest import TestCase | |
from unittest.mock import patch, call | |
from my_project.module import complex_function | |
class SomeTestCase(TestCase): | |
# in this test case every method will mock calls to func_1, func_2, func_3, func_4 | |
def setUp(self): | |
super().setUp() |
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
''' | |
adminreverse from here http://djangosnippets.org/snippets/2032/ | |
changed for working with ForeignKeys | |
''' | |
''' | |
reverseadmin | |
============ | |
Module that makes django admin handle OneToOneFields in a better way. | |
A common use case for one-to-one relationships is to "embed" a model | |
inside another one. For example, a Person may have multiple foreign |