Skip to content

Instantly share code, notes, and snippets.

View okusama27's full-sized avatar
🏠
Working from home

Kameko Ohmura okusama27

🏠
Working from home
View GitHub Profile
import unittest
from unittest.mock import MagicMock
class SampleMethod():
def method_1(self):
print('method_1')
return 'method_1'
class SampleMethod():
def method_1(self):
print('method_1')
return 'method_1'
import unittest
from unittest.mock import patch
from sample_method import SampleMethod
class TestSampleMethod(unittest.TestCase):
def setUp(self):
print('setUp')
self.sample = SampleMethod()
import unittest
from unittest.mock import patch
from sample_method import SampleMethod
class TestSampleMethod(unittest.TestCase):
def setUp(self):
print('setUp')
self.sample = SampleMethod()
import pytest
class SampleMethod():
def method_1(self):
print('method_1')
return 'method_1'

広がるPython(Python Big Bang)

Kameko Ohmura