Skip to content

Commit b4db194

Browse files
authored
Add smoke test (#1101)
1 parent 94556ef commit b4db194

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/smoke_test.py

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
"""
2+
Minimal smoke test.
3+
4+
This test verifies that the package can be installed and that
5+
its most basic public API is usable. It intentionally avoids
6+
test frameworks and any optional dependencies.
7+
"""
8+
9+
10+
def main():
11+
import django
12+
13+
import bootstrap3
14+
15+
# Basic imports work
16+
assert django.get_version()
17+
assert hasattr(bootstrap3, "__version__")
18+
19+
# One minimal functional call
20+
from bootstrap3.text import text_concat
21+
22+
combined = text_concat("alpha", "beta", separator="-")
23+
assert combined == "alpha-beta"
24+
25+
26+
if __name__ == "__main__":
27+
main()

0 commit comments

Comments
 (0)