Skip to content

Commit

Permalink
activate app before testing if it's active (#2269)
Browse files Browse the repository at this point in the history
* activate before testing it's active

* remove testframework

* remove empty lines

* sorting imports

---------

Co-authored-by: Jeroen de Vries <jeroendevriesrunbox.eu>
  • Loading branch information
Jeroendevr committed May 27, 2023
1 parent 64ac11b commit e9d00a0
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions tests/test_active.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import os
import unittest

import xlwings as xw

Expand All @@ -13,6 +12,7 @@

class TestActive(TestBase):
def test_apps_active(self):
self.app2.activate()
self.assertEqual(xw.apps.active, self.app2)

def test_books_active(self):
Expand Down Expand Up @@ -74,7 +74,3 @@ def test_list_sheet(self):
xw.view([1, 2, 3], sheet=xw.books[0].sheets[0])
self.assertEqual(xw.books.count, n_books)
self.assertEqual(xw.books[0].sheets[0].range("A1:C1").value, [1.0, 2.0, 3.0])


if __name__ == "__main__":
unittest.main()

0 comments on commit e9d00a0

Please sign in to comment.