Kameko Ohmura
This file contains 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 unittest | |
from unittest.mock import MagicMock | |
class SampleMethod(): | |
def method_1(self): | |
print('method_1') | |
return 'method_1' |
This file contains 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
class SampleMethod(): | |
def method_1(self): | |
print('method_1') | |
return 'method_1' |
This file contains 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 unittest | |
from unittest.mock import patch | |
from sample_method import SampleMethod | |
class TestSampleMethod(unittest.TestCase): | |
def setUp(self): | |
print('setUp') | |
self.sample = SampleMethod() |
This file contains 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 unittest | |
from unittest.mock import patch | |
from sample_method import SampleMethod | |
class TestSampleMethod(unittest.TestCase): | |
def setUp(self): | |
print('setUp') | |
self.sample = SampleMethod() |
This file contains 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 | |
class SampleMethod(): | |
def method_1(self): | |
print('method_1') | |
return 'method_1' | |
OlderNewer