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:
parent
7bbfac52e9
commit
95782b0974
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user