Skip to content

Commit

Permalink
Remove __version__ variable from the modules of the test package
Browse files Browse the repository at this point in the history
Bug: T87409
Change-Id: I135e87fb67ca59aff31153dcf8132776fdfae14f
  • Loading branch information
5j9 committed Apr 19, 2017
1 parent 163006a commit 7b77129
Show file tree
Hide file tree
Showing 78 changed files with 3 additions and 168 deletions.
2 changes: 0 additions & 2 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, print_function, unicode_literals

__version__ = '$Id$'

import functools
import os
import warnings
Expand Down
2 changes: 0 additions & 2 deletions tests/add_text_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot

from scripts.add_text import add_text
Expand Down
2 changes: 0 additions & 2 deletions tests/api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import datetime
import types

Expand Down
2 changes: 0 additions & 2 deletions tests/archivebot_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from datetime import datetime, timedelta

import pywikibot
Expand Down
1 change: 0 additions & 1 deletion tests/aspects.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
# Distributed under the terms of the MIT license.
#
from __future__ import absolute_import, print_function, unicode_literals
__version__ = '$Id$'
"""
TODO:
Expand Down
2 changes: 0 additions & 2 deletions tests/basepage_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot.page import BasePage

from tests.aspects import (
Expand Down
2 changes: 0 additions & 2 deletions tests/bot_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#
import sys

import pywikibot
Expand Down
3 changes: 0 additions & 3 deletions tests/cache_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#

from pywikibot.site import BaseSite

import scripts.maintenance.cache as cache
Expand Down
2 changes: 0 additions & 2 deletions tests/category_bot_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

try:
from unittest.mock import patch, Mock
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions tests/category_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot
import pywikibot.page

Expand Down
2 changes: 0 additions & 2 deletions tests/cosmetic_changes_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot.cosmetic_changes import CosmeticChangesToolkit

from tests.aspects import unittest, TestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/data_ingestion_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from scripts import data_ingestion

from tests import join_data_path, join_images_path
Expand Down
2 changes: 0 additions & 2 deletions tests/deletionbot_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot
import pywikibot.page

Expand Down
2 changes: 0 additions & 2 deletions tests/deprecation_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot.tools import (
deprecated, deprecate_arg, deprecated_args, add_full_name, remove_last_args
)
Expand Down
2 changes: 0 additions & 2 deletions tests/diff_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
# Distributed under the terms of the MIT license.
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import sys

from pywikibot.diff import cherry_pick, html_comparator, PatchManager
Expand Down
3 changes: 0 additions & 3 deletions tests/disambredir_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#

import pywikibot

from scripts import disambredir
Expand Down
3 changes: 0 additions & 3 deletions tests/dry_api_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#

import datetime

import pywikibot
Expand Down
3 changes: 0 additions & 3 deletions tests/dry_site_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#

import pywikibot
from pywikibot.tools import deprecated
from pywikibot.site import must_be, need_version
Expand Down
2 changes: 0 additions & 2 deletions tests/edit_failure_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot
from pywikibot import (
Error,
Expand Down
3 changes: 0 additions & 3 deletions tests/edit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#

import time

import pywikibot
Expand Down
2 changes: 0 additions & 2 deletions tests/exceptions_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot

from tests.aspects import unittest, DeprecationTestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/family_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot.site

from pywikibot.exceptions import UnknownFamily
Expand Down
2 changes: 0 additions & 2 deletions tests/file_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import os

import pywikibot
Expand Down
2 changes: 0 additions & 2 deletions tests/fixes_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot import fixes

from tests import unittest, join_data_path
Expand Down
2 changes: 0 additions & 2 deletions tests/flow_edit_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot.exceptions import LockedPage
from pywikibot.flow import Board, Topic, Post
from pywikibot.tools import UnicodeType as unicode
Expand Down
2 changes: 0 additions & 2 deletions tests/flow_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot.exceptions import NoPage
from pywikibot.flow import Board, Topic, Post
from pywikibot.tools import UnicodeType as unicode
Expand Down
2 changes: 0 additions & 2 deletions tests/http_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import json
import re
import warnings
Expand Down
2 changes: 0 additions & 2 deletions tests/i18n_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot

from pywikibot import i18n, bot, plural
Expand Down
2 changes: 0 additions & 2 deletions tests/interwiki_graph_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot import interwiki_graph

from tests.aspects import unittest, require_modules, SiteAttributeTestCase
Expand Down
2 changes: 0 additions & 2 deletions tests/interwiki_link_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from pywikibot import config2 as config

from pywikibot.exceptions import InvalidTitle
Expand Down
2 changes: 0 additions & 2 deletions tests/interwikidata_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import unicode_literals, absolute_import

__version__ = '$Id$'

import pywikibot

from pywikibot import Link
Expand Down
2 changes: 0 additions & 2 deletions tests/isbn_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

import pywikibot

__version__ = '$Id$'

try:
from stdnum.exceptions import ValidationError as StdNumValidationError
except ImportError:
Expand Down
2 changes: 0 additions & 2 deletions tests/l10n_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot
from pywikibot import i18n
from pywikibot.textlib import extract_templates_and_params_regex_simple
Expand Down
2 changes: 0 additions & 2 deletions tests/link_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import pywikibot

from pywikibot import config2 as config
Expand Down
2 changes: 0 additions & 2 deletions tests/logentry_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import datetime

import pywikibot
Expand Down
2 changes: 0 additions & 2 deletions tests/login_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#
from collections import defaultdict
try:
import unittest.mock as mock
Expand Down
2 changes: 0 additions & 2 deletions tests/mediawikiversion_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'


from pywikibot.tools import MediaWikiVersion

Expand Down
2 changes: 0 additions & 2 deletions tests/namespace_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

from collections import Iterable

from pywikibot.site import Namespace, NamespacesDict
Expand Down
2 changes: 0 additions & 2 deletions tests/oauth_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'

import os

from pywikibot.login import OauthLoginManager
Expand Down
3 changes: 0 additions & 3 deletions tests/page_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
from __future__ import absolute_import, unicode_literals


__version__ = '$Id$'


import pickle
import re
try:
Expand Down
3 changes: 0 additions & 3 deletions tests/pagegenerators_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,6 @@
)
from tests.thread_tests import GeneratorIntersectTestCase


__version__ = '$Id$'

en_wp_page_titles = (
# just a bunch of randomly selected titles for English Wikipedia tests
u"Eastern Sayan",
Expand Down
3 changes: 0 additions & 3 deletions tests/paraminfo_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
#
from __future__ import absolute_import, unicode_literals

__version__ = '$Id$'
#

from pywikibot.family import WikimediaFamily
from pywikibot.page import Claim, Property
from pywikibot.site import DataSite
Expand Down
Loading

0 comments on commit 7b77129

Please sign in to comment.