mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-09 08:09:39 +07:00
Revert "[Grazie, Python] IJ-CR-9516 Add Grazie test module for Python"
This reverts commit 00b2a2ba0dbab7d4f5497b56ddf05a4f203dc586. GitOrigin-RevId: af2d9f75c3d927b6d0622870cdabd9be6b1da296
This commit is contained in:
committed by
intellij-monorepo-bot
parent
22c2590980
commit
03738e323e
@@ -1,20 +0,0 @@
|
||||
package com.intellij.grazie.ide.language.python
|
||||
|
||||
import com.intellij.grazie.GrazieTestBase
|
||||
|
||||
class PythonGrazieSupportTest : GrazieTestBase() {
|
||||
override fun getBasePath() = "python/python-grazie/test/testData"
|
||||
override fun isCommunity() = true
|
||||
|
||||
fun `test grammar check in constructs`() {
|
||||
runHighlightTestForFile("Constructs.py")
|
||||
}
|
||||
|
||||
fun `test grammar check in docs`() {
|
||||
runHighlightTestForFile("Docs.py")
|
||||
}
|
||||
|
||||
fun `test grammar check in string literals`() {
|
||||
runHighlightTestForFile("StringLiterals.py")
|
||||
}
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module type="JAVA_MODULE" version="4">
|
||||
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
||||
<exclude-output />
|
||||
<content url="file://$MODULE_DIR$">
|
||||
<sourceFolder url="file://$MODULE_DIR$" isTestSource="true" />
|
||||
<sourceFolder url="file://$MODULE_DIR$/testData" type="java-test-resource" />
|
||||
</content>
|
||||
<orderEntry type="inheritedJdk" />
|
||||
<orderEntry type="sourceFolder" forTests="false" />
|
||||
<orderEntry type="module" module-name="intellij.grazie.tests" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.python.grazie" scope="TEST" />
|
||||
<orderEntry type="module" module-name="intellij.python.community.plugin" scope="TEST" />
|
||||
</component>
|
||||
</module>
|
||||
@@ -1,8 +0,0 @@
|
||||
variableWith<TYPO descr="Typo: In word 'Eror'">Eror</TYPO> = "error"
|
||||
|
||||
def <TYPO descr="Typo: In word 'eror'">eror</TYPO>Function(<TYPO descr="Typo: In word 'eror'">eror</TYPO>):
|
||||
pass
|
||||
|
||||
class ClassWith<TYPO descr="Typo: In word 'Eror'">Eror</TYPO>:
|
||||
def __init__(self, <TYPO descr="Typo: In word 'eror'">eror</TYPO>):
|
||||
self.<TYPO descr="Typo: In word 'eror'">eror</TYPO> = eror
|
||||
@@ -1,81 +0,0 @@
|
||||
# coding=utf-8
|
||||
"""Module description <TYPO descr="Typo: In word 'eror'">eror</TYPO>"""
|
||||
|
||||
|
||||
class ExampleClassWithNoTypos:
|
||||
"""A group of *members*.
|
||||
|
||||
This class has no useful logic; it's just a documentation example.
|
||||
|
||||
Args:
|
||||
name (str): the name of this group.
|
||||
|
||||
Attributes:
|
||||
name (str): the name of this group.
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def good_function(self, member):
|
||||
"""
|
||||
Adds a [member] to this group.
|
||||
|
||||
Args:
|
||||
member (str): member to add to the group.
|
||||
|
||||
Returns:
|
||||
int: the new size of the group.
|
||||
|
||||
"""
|
||||
return 1 # no error comment
|
||||
|
||||
|
||||
class ExampleClassWithTypos:
|
||||
"""It <warning descr="IT_VBZ">are</warning> friend there
|
||||
|
||||
<warning descr="PLURAL_VERB_AFTER_THIS">This guy have</warning> no useful logic; it's just a documentation example.
|
||||
|
||||
Args:
|
||||
name (str): the <warning descr="COMMA_WHICH">name which</warning> group
|
||||
|
||||
Attributes:
|
||||
name (str): the <warning descr="COMMA_WHICH">name which</warning> group
|
||||
|
||||
"""
|
||||
|
||||
def __init__(self, name):
|
||||
self.name = name
|
||||
|
||||
def bad_function(self, member):
|
||||
"""
|
||||
It <warning descr="IT_VBZ">add</warning> a [member] to this <TYPO descr="Typo: In word 'grooup'">grooup</TYPO>.
|
||||
|
||||
Args:
|
||||
member (str): member to add to the group.
|
||||
|
||||
Returns:
|
||||
int: the new size of <warning descr="DT_DT">a the</warning> group.
|
||||
|
||||
"""
|
||||
return 1 # It <warning descr="IT_VBZ">are</warning> <TYPO descr="Typo: In word 'eror'">eror</TYPO> comment
|
||||
|
||||
|
||||
class ForMultiLanguageSupport:
|
||||
"""
|
||||
В коробке лежало <warning descr="Sklonenije_NUM_NN">пять карандаша</warning>.
|
||||
А <warning descr="grammar_vse_li_noun">все ли ошибка</warning> найдены?
|
||||
Это случилось <warning descr="INVALID_DATE">31 ноября</warning> 2014 г.
|
||||
За весь вечер она <warning descr="ne_proronila_ni">не проронила и слово</warning>.
|
||||
Собрание состоится в <warning descr="RU_COMPOUNDS">конференц зале</warning>.
|
||||
<warning descr="WORD_REPEAT_RULE">Он он</warning> ошибка.
|
||||
"""
|
||||
|
||||
def __init__(self):
|
||||
"""
|
||||
Er überprüfte die Rechnungen noch <TYPO descr="Typo: In word 'einal'">einal</TYPO>, um ganz <warning descr="COMPOUND_INFINITIV_RULE">sicher zu gehen</warning>.
|
||||
Das ist <warning descr="FUEHR_FUER">führ</warning> Dich!
|
||||
Das <TYPO descr="Typo: In word 'daert'">daert</TYPO> geschätzt fünf <warning descr="MANNSTUNDE">Mannstunden</warning>.
|
||||
"""
|
||||
pass
|
||||
@@ -1,18 +0,0 @@
|
||||
# TODO add f-Strings support
|
||||
oneTypo = "It is <warning descr="BEEN_PART_AGREEMENT">friend</warning> of human"
|
||||
oneSpellcheckTypo = "It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human"
|
||||
fewTypos = "It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings"
|
||||
ignoreTemplate = "It is {} friend" % fewTypos
|
||||
notIgnoreOtherMistakes = "It <warning descr="IT_VBZ">are</warning> friend. But I have a {1} here"
|
||||
|
||||
oneTypo = 'It is <warning descr="BEEN_PART_AGREEMENT">friend</warning> of human'
|
||||
oneSpellcheckTypo = 'It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human'
|
||||
fewTypos = 'It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings'
|
||||
ignoreTemplate = 'It is {} friend' % fewTypos
|
||||
notIgnoreOtherMistakes = 'It <warning descr="IT_VBZ">are</warning> friend. But I have a {1} here'
|
||||
|
||||
print('It is <warning descr="BEEN_PART_AGREEMENT">friend</warning> of human')
|
||||
print('It is <TYPO descr="Typo: In word 'frend'">frend</TYPO> of human')
|
||||
print('It <warning descr="IT_VBZ">are</warning> working for <warning descr="MUCH_COUNTABLE">much</warning> warnings')
|
||||
print('It is {} friend' % fewTypos)
|
||||
print('It <warning descr="IT_VBZ">are</warning> friend. But I have a {1} here')
|
||||
Reference in New Issue
Block a user