1
0
mirror of https://github.com/vikstrous/pirate-get synced 2025-01-09 09:59:51 +01:00

fix print_results tests when COLUMNS is not set

This commit is contained in:
Michele Guerini Rocco 2020-03-10 15:39:23 +01:00
parent 7bbfac52e9
commit 95782b0974
Signed by: rnhmjoj
GPG Key ID: BFBAF4C975F76450

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3
import os
import unittest
from unittest.mock import patch, call, MagicMock
@ -6,6 +7,10 @@ from pirate.print import Printer
class TestPrint(unittest.TestCase):
@classmethod
def setUpClass(cls):
# needed to display the results table
os.environ['COLUMNS'] = '80'
def test_print_results_remote(self):
class MockTable: