11 lines
319 B
Python
11 lines
319 B
Python
import subprocess
|
|
import unittest
|
|
|
|
from test_python_floor import ROOT
|
|
|
|
|
|
class Gitignore(unittest.TestCase):
|
|
def test_ignores_no_tracked_file(self):
|
|
ignored = subprocess.run(["git", "ls-files", "-ci", "--exclude-standard"], capture_output=True, check=True, cwd=ROOT, text=True).stdout
|
|
self.assertEqual(ignored, "")
|