FWIW, I've had some progress (after having a number of hilarious potholes). 

def mock_window(monkeypatch):
    sys.is_pyglet_docgen = True
    monkeypatch.setattr('pyglet.window.Window', MockWindow)
    from arcade import Window
    return Window

As long as I ask for this fixture in my tests and don't import anything 
that might import pyglet in the tests, it works and uses my own MockWindow 
in the place of pyglet.window.Window.

My tests are going pretty fast now.

You received this message because you are subscribed to the Google Groups 
"pyglet-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to pyglet-users+unsubscr...@googlegroups.com.
To post to this group, send email to pyglet-users@googlegroups.com.
Visit this group at https://groups.google.com/group/pyglet-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to