Aktraiser commited on
Commit
dae98db
·
1 Parent(s): 0f2b5e7

probleme init2

Browse files
Files changed (2) hide show
  1. tools/__init__.py +2 -1
  2. tools/test_creation.py +21 -0
tools/__init__.py CHANGED
@@ -7,4 +7,5 @@ from .config import *
7
  from .navigation import *
8
  from .user_account import *
9
  from .figma_design import *
10
- from .figjam import *
 
 
7
  from .navigation import *
8
  from .user_account import *
9
  from .figma_design import *
10
+ from .figjam import *
11
+ from .test_creation import *
tools/test_creation.py ADDED
@@ -0,0 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ """
2
+ 🧪 Test d'une fonction de création simple
3
+ """
4
+ from .config import figma_config
5
+
6
+ def test_create_simple_element(x: str, y: str, name: str = "Test") -> str:
7
+ """
8
+ Fonction de test pour créer un élément simple.
9
+
10
+ Args:
11
+ x (str): Position X en pixels
12
+ y (str): Position Y en pixels
13
+ name (str): Nom de l'élément (défaut: Test)
14
+
15
+ Returns:
16
+ str: Message de confirmation
17
+ """
18
+ if not figma_config["file_id"]:
19
+ return "❌ ID du fichier requis"
20
+
21
+ return f"✅ Test élément {name} créé à ({x}, {y})"