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 json | |
from functools import wraps | |
from typing import Dict | |
from attr import attrs | |
from attr.validators import in_ | |
from cattr import typed, structure, unstructure | |
# Don't at me, I like methods: |
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
# Vai precisar mockar dependency pra testar my_function: | |
def dependency(param1, param2): | |
print(param1, param2) | |
def my_function(params): | |
# do things | |
if len(params) == 2: | |
dependency(*params) |