fix: Refactor
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import unittest
|
||||
from unittest.mock import patch, MagicMock
|
||||
from escpos.printer import Dummy
|
||||
from ..printer_factory import PrinterFactory
|
||||
from printer_factory import PrinterFactory
|
||||
|
||||
|
||||
class TestPrinterFactory(unittest.TestCase):
|
||||
@@ -17,7 +17,7 @@ class TestPrinterFactory(unittest.TestCase):
|
||||
printer = self.factory_dummy._get_printer()
|
||||
self.assertIsInstance(printer, Dummy)
|
||||
|
||||
@patch('Api.printer_factory.Network')
|
||||
@patch('printer_factory.Network')
|
||||
def test_create_network_printer(self, mock_network):
|
||||
"""Test creación de impresora de red con mock"""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user