> For the complete documentation index, see [llms.txt](https://igor-19.gitbook.io/qa/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://igor-19.gitbook.io/qa/avtomatizaciya-testirovaniya/python/allure-python/dekoratory/strogost-severity.md).

# Строгость(Severity)

Любой тест, класс или модуль можно пометить разной серьезностью:

```
import allure

class TestBar(object):

    @allure.severity(allure.severity_level.CRITICAL)
    def test_bar(self):
        pass

# custom severity
@allure.severity("hard")
def test_bar(self):
    pass
```

Чтобы запустить тесты с конкретным приоритетом:

```
nosetests my_tests/ --with-allure --logdir=tmp --severity="critical, hard"
```

![](https://2199266820-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjLS7kUc1aR2S56nZreKO%2Fuploads%2FydpZZZ8T1WbBofOZOxOl%2Fimage.png?alt=media\&token=29347a35-5eae-4555-8dad-49ade57d7530)
