Skip to content

Get tests back online #84

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions tests/test_window_arrangements.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,16 @@
from __future__ import unicode_literals

from prompt_toolkit.buffer import Buffer
from pyvim.editor import Editor
from pyvim.window_arrangement import TabPage, EditorBuffer, Window, HSplit, VSplit

import unittest


class BufferTest(unittest.TestCase):
def setUp(self):
b = Buffer()
eb = EditorBuffer('b1', b)
e = Editor()
eb = EditorBuffer(e, 'b1')
self.window = Window(eb)
self.tabpage = TabPage(self.window)

Expand All @@ -19,8 +20,8 @@ def test_initial(self):

def test_vsplit(self):
# Create new buffer.
b = Buffer()
eb = EditorBuffer('b1', b)
e = Editor()
eb = EditorBuffer(e, 'b1')

# Insert in tab, by splitting.
self.tabpage.vsplit(eb)
Expand Down