mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
test: convert tests to pytest assertions; add server-availability skips; clean up warnings and minor syntax/indent issues
This commit is contained in:
parent
f07daaeb4a
commit
947adacfe2
21 changed files with 374 additions and 311 deletions
|
|
@ -4,10 +4,6 @@ Advanced integration test for exclude functionality.
|
|||
Tests that excluded cards are completely removed from all dataframe sources.
|
||||
"""
|
||||
|
||||
import sys
|
||||
import os
|
||||
sys.path.insert(0, os.path.join(os.path.dirname(__file__), 'code'))
|
||||
|
||||
from code.deck_builder.builder import DeckBuilder
|
||||
|
||||
def test_comprehensive_exclude_filtering():
|
||||
|
|
@ -74,18 +70,10 @@ def test_comprehensive_exclude_filtering():
|
|||
print(f" ✗ '{exclude_card}' incorrectly found in lookup: {lookup_result['name'].tolist()}")
|
||||
|
||||
print("\n=== Test Complete ===")
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
print(f"Test failed with error: {e}")
|
||||
import traceback
|
||||
print(traceback.format_exc())
|
||||
return False
|
||||
|
||||
if __name__ == "__main__":
|
||||
success = test_comprehensive_exclude_filtering()
|
||||
if success:
|
||||
print("✅ Comprehensive exclude filtering test passed!")
|
||||
else:
|
||||
print("❌ Comprehensive exclude filtering test failed!")
|
||||
sys.exit(1)
|
||||
assert False
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue