Eisenhaus335 has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/401002 )

Change subject: Create editor_tests.py
......................................................................

Create editor_tests.py

Change-Id: Ifa41ee07249b449d4c155f86c9257bac466aa89e
---
A tests/editor_tests.py
1 file changed, 24 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/pywikibot/core 
refs/changes/02/401002/1

diff --git a/tests/editor_tests.py b/tests/editor_tests.py
new file mode 100644
index 0000000..a126237
--- /dev/null
+++ b/tests/editor_tests.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+# -*- coding: utf-8 -*-
+"""Test Editor."""
+
+from __future__ import absolute_import, unicode_literals
+
+import os
+
+import tempfile
+
+from pywikibot import editor
+
+
+def test_editor_edituserconfigpy_same():
+    result = editor.edit(text = None, jumpIndex = 200, highlight = 'test1')
+
+
+def test_editor_edituserconfigpy():
+    result = editor.edit(text = 'test1', jumpIndex = 200, highlight = 'test1')
+
+
+def test_editor_command():
+    tempfile.TemporaryFile(suffix = 'test', prefix = 'txt', dir = os.getcwd())
+    editor.command(tempFilename = os.getcwd() + 'test.txt', text = 'test')

-- 
To view, visit https://gerrit.wikimedia.org/r/401002
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ifa41ee07249b449d4c155f86c9257bac466aa89e
Gerrit-PatchSet: 1
Gerrit-Project: pywikibot/core
Gerrit-Branch: master
Gerrit-Owner: Eisenhaus335 <greenzone...@outlook.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to