common tests fix

This commit is contained in:
Tibe Habils
2023-03-26 11:47:48 +00:00
parent f69e2385fc
commit b012e40df8
10 changed files with 12 additions and 28 deletions

View File

@@ -15,7 +15,7 @@ public class CourseMenuScreenTest
[UnitySetUp]
public IEnumerator SetupFunction()
{
string path = Path.Combine("Assets", "users.json");
string path = $"{Application.persistentDataPath}/users.json";
var oneUser = "{\"currentUserIndex\": 0,\"storedUsers\": [{\"username\": \"TEST\",\"avatar\": {\"instanceID\": 40848},\"playtime\": 0.0,\"courses\": [],\"minigames\": []}]}";
using (StreamWriter writer = new StreamWriter(path))