test_Append2BaseXls.py 495 B

1234567891011121314151617181920
  1. from baangt.base.ExportResults.Append2BaseXLS import Append2BaseXLS
  2. import pytest
  3. from unittest.mock import patch
  4. import icopy2xls
  5. class testRun:
  6. def __init__(self):
  7. self.globalSettings = {"AR2BXLS": "examples/CompleteBaangtWebdemo.xlsx,1;/fake/path/test.xlsx,1"}
  8. @pytest.fixture(scope="module")
  9. def testRunInstance():
  10. return testRun()
  11. @patch.object(icopy2xls.Mover, "move")
  12. def test_A2BX(mock_mover, testRunInstance):
  13. Append2BaseXLS(testRunInstance)
  14. assert 1 == 1