changeset 174:730a6f0959fe

Delete tests
author Dennis Concepción Martín <66180929+denniscm190@users.noreply.github.com>
date Sat, 20 Feb 2021 13:13:14 +0100
parents c3420ae11bda
children be5f5cabf789
files LazyBear.xcodeproj/project.pbxproj LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate LazyBear.xcodeproj/xcshareddata/xcschemes/LazyBear.xcscheme LazyBear/Tests/TestSearchAPI.swift
diffstat 4 files changed, 1 insertions(+), 40 deletions(-) [+]
line wrap: on
line diff
--- a/LazyBear.xcodeproj/project.pbxproj	Sat Feb 20 13:10:57 2021 +0100
+++ b/LazyBear.xcodeproj/project.pbxproj	Sat Feb 20 13:13:14 2021 +0100
@@ -29,7 +29,6 @@
 		95ACB5AC25E03A7D00A3CCC8 /* themes.json in Resources */ = {isa = PBXBuildFile; fileRef = 95ACB5AB25E03A7D00A3CCC8 /* themes.json */; };
 		95ACB5AF25E03AA100A3CCC8 /* ThemeModel.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95ACB5AE25E03AA100A3CCC8 /* ThemeModel.swift */; };
 		95B3E09F25E127D7007EFDE3 /* Request.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95B3E09E25E127D7007EFDE3 /* Request.swift */; };
-		95B3E0A225E1283F007EFDE3 /* TestSearchAPI.swift in Sources */ = {isa = PBXBuildFile; fileRef = 95B3E0A125E1283F007EFDE3 /* TestSearchAPI.swift */; };
 		95B3E0A625E1318D007EFDE3 /* SwiftlySearch in Frameworks */ = {isa = PBXBuildFile; productRef = 95B3E0A525E1318D007EFDE3 /* SwiftlySearch */; };
 /* End PBXBuildFile section */
 
@@ -61,7 +60,6 @@
 		95ACB5AB25E03A7D00A3CCC8 /* themes.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = themes.json; sourceTree = "<group>"; };
 		95ACB5AE25E03AA100A3CCC8 /* ThemeModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ThemeModel.swift; sourceTree = "<group>"; };
 		95B3E09E25E127D7007EFDE3 /* Request.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Request.swift; sourceTree = "<group>"; };
-		95B3E0A125E1283F007EFDE3 /* TestSearchAPI.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = TestSearchAPI.swift; sourceTree = "<group>"; };
 /* End PBXFileReference section */
 
 /* Begin PBXFrameworksBuildPhase section */
@@ -178,7 +176,6 @@
 		95B1874A25DDAC5B0068A364 /* Tests */ = {
 			isa = PBXGroup;
 			children = (
-				95B3E0A125E1283F007EFDE3 /* TestSearchAPI.swift */,
 			);
 			path = Tests;
 			sourceTree = "<group>";
@@ -270,7 +267,6 @@
 				95672B9125DDA54700DCBE4A /* ContentView.swift in Sources */,
 				958A733B25E00C3100FD7ECA /* Company+CoreDataProperties.swift in Sources */,
 				95ACB5AF25E03AA100A3CCC8 /* ThemeModel.swift in Sources */,
-				95B3E0A225E1283F007EFDE3 /* TestSearchAPI.swift in Sources */,
 				95672B8F25DDA54700DCBE4A /* LazyBearApp.swift in Sources */,
 				958A734525E00D3D00FD7ECA /* Row.swift in Sources */,
 				95672B9B25DDA54800DCBE4A /* LazyBear.xcdatamodeld in Sources */,
Binary file LazyBear.xcodeproj/project.xcworkspace/xcuserdata/dennis.xcuserdatad/UserInterfaceState.xcuserstate has changed
--- a/LazyBear.xcodeproj/xcshareddata/xcschemes/LazyBear.xcscheme	Sat Feb 20 13:10:57 2021 +0100
+++ b/LazyBear.xcodeproj/xcshareddata/xcschemes/LazyBear.xcscheme	Sat Feb 20 13:13:14 2021 +0100
@@ -31,7 +31,7 @@
       </Testables>
    </TestAction>
    <LaunchAction
-      buildConfiguration = "Release"
+      buildConfiguration = "Debug"
       selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
       selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
       launchStyle = "0"
--- a/LazyBear/Tests/TestSearchAPI.swift	Sat Feb 20 13:10:57 2021 +0100
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,35 +0,0 @@
-//
-//  TestSearchAPI.swift
-//  LazyBear
-//
-//  Created by Dennis Concepción Martín on 20/2/21.
-//
-
-import SwiftUI
-
-struct TestSearchAPI: View {
-    @State private var companies = [CompanyModel]()
-    
-    var body: some View {
-        Button(action: { print(companies) }) {
-            Text("Print companies")
-        }
-        .onAppear {
-            request(url: getUrl(), model: [CompanyModel].self) { self.companies = $0 }
-        }
-    }
-    
-    private func getUrl() -> String {
-        let baseUrl = Bundle.main.infoDictionary?["IEX_URL"] as? String ?? "Empty url"
-        let apiKey = Bundle.main.infoDictionary?["IEX_API"] as? String ?? "Empty key"
-        let url = "\(baseUrl)/search/apple?token=\(apiKey)"
-        
-        return url
-    }
-}
-
-struct TestSearchAPI_Previews: PreviewProvider {
-    static var previews: some View {
-        TestSearchAPI()
-    }
-}