package Ġorg . jetbrains . research . p yn ose . plugin . ins pe ctions . pytest . disabled Ċ Ċ import Ġcom . intellij . lang . annotation . Highlight Severity Ċ import Ġcom . intellij . openapi . components . service Ċ import Ġio . mock k . every Ċ import Ġio . mock k . mock k Object Ċ import Ġorg . jetbrains . research . p yn ose . plugin . ins pe ctions . TestRunner Ċ import Ġorg . jetbrains . research . p yn ose . plugin . ins pe ctions . TestRunner Service Facade Ċ import Ġorg . jetbrains . research . p yn ose . plugin . util . Abstract Test S mell Inspection Test With Sdk Ċ import Ġorg . junit . Test Ċ import Ġorg . junit . jupiter . api . Before All Ċ Ċ class ĠL ack Co he sion Test S mell Py test Inspection Tests Ġ: ĠAbstract Test S mell Inspection Test With Sdk () Ġ{ ĊĊĠĠĠ Ġ@ Before All ĊĠĠĠ Ġoverride Ġfun ĠsetUp () Ġ{ ĊĠĠĠĠĠĠĠ Ġsuper . setUp () ĊĠĠĠĠĠĠĠ Ġmock k Object ( my Fixture . project . service < TestRunner Service Facade >()) ĊĠĠĠĠĠĠĠ Ġevery Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġmy Fixture . project . service < TestRunner Service Facade >(). getConfig ured TestRunner ( any ()) ĊĠĠĠĠĠĠĠ Ġ} Ġreturns ĠTest Runner . PY TEST ĊĠĠĠĠĠĠĠ Ġmy Fixture . enable Ins pe ctions ( L ack Co he sion Test S mell Py test Inspection ()) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġget TestData Path (): ĠString Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn Ġ" src / test / resources / org / jetbrains / research / p yn ose / plugin / ins pe ctions / data / l ack _ co he sion / pytest " ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test Ġhighlighted Ġlack Ġof Ġco he sion `() Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By File (" test _ l ack _ co he sion . py ") ĊĠĠĠĠĠĠĠ Ġmy Fixture . check Highlighting () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test Ġlack Ġof Ġco he sion Ġwithout Ġunittest Ġdependency `() Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By File (" test _ l ack _ co he sion _ no _ dependency . py ") ĊĠĠĠĠĠĠĠ Ġval Ġhighlight Infos Ġ= Ġmy Fixture . do Highlighting () ĊĠĠĠĠĠĠĠ ĠassertTrue (! highlight Infos . any Ġ{ Ġit . severity Ġ== ĠHighlight Severity . WE AK _ WARNING Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test Ġnormal Ġco he sion `() Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By File (" test _ normal _ co he sion . py ") ĊĠĠĠĠĠĠĠ Ġval Ġhighlight Infos Ġ= Ġmy Fixture . do Highlighting () ĊĠĠĠĠĠĠĠ ĠassertTrue (! highlight Infos . any Ġ{ Ġit . severity Ġ== ĠHighlight Severity . WE AK _ WARNING Ġ}) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test Ġlack Ġco he sion Ġmultiple `() Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By File (" test _ l ack _ co he sion _ multiple . py ") ĊĠĠĠĠĠĠĠ Ġmy Fixture . check Highlighting () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ// Ġtodo Ġdoes Ġnot Ġpass Ġyet , Ġeven Ġwith Ġthe Ġannotation ĊĠĠĠ Ġ/* ĊĠĠĠ Ġ@ Test ĊĠĠĠ Ġfun Ġ` test Ġlack Ġco he sion Ġin Ġa Ġfile `() Ġ{ ĊĠĠĠĠĠĠĠ Ġmy Fixture . configure By File (" test _ l ack _ co he sion _ file . py ") ĊĠĠĠĠĠĠĠ Ġmy Fixture . check Highlighting () ĊĠĠĠ Ġ} ĊĠĠĠ Ġ*/ Ċ }