Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.31 KB | None | 0 0
  1. diff --git a/WordPress/WordPressTest/PostCoordinatorTests.swift b/WordPress/WordPressTest/PostCoordinatorTests.swift
  2. index cfd76d4eeb..9df5a572c3 100644
  3. --- a/WordPress/WordPressTest/PostCoordinatorTests.swift
  4. +++ b/WordPress/WordPressTest/PostCoordinatorTests.swift
  5. @@ -6,9 +6,14 @@ import Nimble
  6.  
  7. class PostCoordinatorTests: XCTestCase {
  8.  
  9. - private let context = TestContextManager().newDerivedContext()
  10. + private let context: NSManagedObjectContext = {
  11. + print("creating context")
  12. + return TestContextManager().newDerivedContext()
  13. + }()
  14.  
  15. func testDoNotUploadAPostWithFailedMedia() {
  16. + print("running testDoNotUploadAPostWithFailedMedia")
  17. +
  18. let post = PostBuilder(context).with(image: "test.jpeg", status: .failed).build()
  19. let postServiceMock = PostServiceMock()
  20. let postCoordinator = PostCoordinator(mainService: postServiceMock, backgroundService: postServiceMock)
  21. @@ -20,6 +25,8 @@ class PostCoordinatorTests: XCTestCase {
  22. }
  23.  
  24. func testUploadAPostWithNoFailedMedia() {
  25. + print("running testUploadAPostWithNoFailedMedia")
  26. +
  27. let post = PostBuilder(context).with(image: "test.jpeg").build()
  28. let postServiceMock = PostServiceMock()
  29. let postCoordinator = PostCoordinator(mainService: postServiceMock, backgroundService: postServiceMock)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement