Files
SpacetimeDB/smoketests/tests/default_module_clippy.py
Noa 540c519002 Rewrite smoketests as python unittests (#692)
* Rewrite smoketests as python unittests

* Get all tests working and do some work on parallel unittest

* Give up on parallel unittests

* Fix CI + address comments

* Fix skip-clippy arg confusion (just use the env var)

* fix ci

* Add comments
2024-03-14 02:47:38 +00:00

12 lines
364 B
Python

import unittest
import tempfile
import subprocess
from .. import Smoketest
class ClippyDefaultModule(Smoketest):
AUTOPUBLISH = False
def test_default_module_clippy_check(self):
"""Ensure that the default rust module has no clippy errors or warnings"""
subprocess.check_call(["cargo", "clippy", "--", "-Dwarnings"], cwd=self.project_path)