Created
September 4, 2019 18:39
-
-
Save shiki/ce74007bb8b5f3093fa00337b380a8b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/WordPress/WordPressTest/PostCoordinatorTests.swift b/WordPress/WordPressTest/PostCoordinatorTests.swift | |
index cfd76d4eeb..9df5a572c3 100644 | |
--- a/WordPress/WordPressTest/PostCoordinatorTests.swift | |
+++ b/WordPress/WordPressTest/PostCoordinatorTests.swift | |
@@ -6,9 +6,14 @@ import Nimble | |
class PostCoordinatorTests: XCTestCase { | |
- private let context = TestContextManager().newDerivedContext() | |
+ private let context: NSManagedObjectContext = { | |
+ print("creating context") | |
+ return TestContextManager().newDerivedContext() | |
+ }() | |
func testDoNotUploadAPostWithFailedMedia() { | |
+ print("running testDoNotUploadAPostWithFailedMedia") | |
+ | |
let post = PostBuilder(context).with(image: "test.jpeg", status: .failed).build() | |
let postServiceMock = PostServiceMock() | |
let postCoordinator = PostCoordinator(mainService: postServiceMock, backgroundService: postServiceMock) | |
@@ -20,6 +25,8 @@ class PostCoordinatorTests: XCTestCase { | |
} | |
func testUploadAPostWithNoFailedMedia() { | |
+ print("running testUploadAPostWithNoFailedMedia") | |
+ | |
let post = PostBuilder(context).with(image: "test.jpeg").build() | |
let postServiceMock = PostServiceMock() | |
let postCoordinator = PostCoordinator(mainService: postServiceMock, backgroundService: postServiceMock) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment