Skip to content

Commit

Permalink
Fixes antialiasing test, removing dependency on hardward
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonb5 committed May 21, 2020
1 parent bd25c18 commit e78fed3
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tests/test_vcs_antialiasing.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,13 @@ class TestVCSAntialias(unittest.TestCase):

def testAntiAliasing(self):
x = vcs.init()
x.open()
# Calling `open` creates the vtkRenderWindow and calls `Render`. This call will evaulate the systems
# capabilities and set antialiasing to the requested value as long as its less than or equal the maximum
# value supported by the system. A scenario exists where vcs will set the initial value to 8 and
# the system isn't capable of this and the first call to getantialiasing after open will result in
# 0 being returned.
# x.open()

# test it is on by default
self.assertEqual(x.getantialiasing(), 8)

Expand Down

0 comments on commit e78fed3

Please sign in to comment.