[GH-ISSUE #298] I can't stub request with OHHTTPStubs #179

Closed
opened 2026-03-03 16:46:25 +03:00 by kerem · 1 comment
Owner

Originally created by @ivanruizscm on GitHub (Oct 20, 2016).
Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/298

Description:

Im trying in my test target to stub request made by OAuthSwift. I dont know why but i can't stub those requests. If i made a simply URLSession.dataTaskWithURL the stubs just works, but if i do the request with oauth no. I see in the code that internally those request are made with URLSession so its very strange

OAuth Provider (Twitter, Github, ..):

OAuth Version:

  • Version 1
  • Version 2

OS (Please fill the version) :

  • iOS :
  • OSX :
  • TVOS :
  • WatchOS :

Installation method:

  • Carthage
  • [x ] CocoaPods
  • Manually

Library version:

  • head
  • v1.0.0
  • v0.6
  • other: (Please fill in the version you are using.)

Xcode version:

  • [x ] 8.0 (Swift 3.0)
  • 8.0 (Swift 2.3)
  • 7.3.1
  • other: (Please fill in the version you are using.)
  • objective c
Originally created by @ivanruizscm on GitHub (Oct 20, 2016). Original GitHub issue: https://github.com/OAuthSwift/OAuthSwift/issues/298 ### Description: Im trying in my test target to stub request made by OAuthSwift. I dont know why but i can't stub those requests. If i made a simply URLSession.dataTaskWithURL the stubs just works, but if i do the request with oauth no. I see in the code that internally those request are made with URLSession so its very strange ### OAuth Provider (Twitter, Github, ..): ### OAuth Version: - [ ] Version 1 - [x] Version 2 ### OS (Please fill the version) : - [x] iOS : - [ ] OSX : - [ ] TVOS : - [ ] WatchOS : ### Installation method: - [ ] Carthage - [x ] CocoaPods - [ ] Manually ### Library version: - [ ] head - [x] v1.0.0 - [ ] v0.6 - [ ] other: (Please fill in the version you are using.) ### Xcode version: - [x ] 8.0 (Swift 3.0) - [ ] 8.0 (Swift 2.3) - [ ] 7.3.1 - [ ] other: (Please fill in the version you are using.) - [ ] objective c
kerem 2026-03-03 16:46:25 +03:00
  • closed this issue
  • added the
    invalid
    label
Author
Owner

@phimage commented on GitHub (Oct 20, 2016):

no code provided (ie. a project to download with tests codes that do not work)
no error message
invalid

<!-- gh-comment-id:255113541 --> @phimage commented on GitHub (Oct 20, 2016): no code provided (ie. a project to download with tests codes that do not work) no error message invalid
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/OAuthSwift#179
No description provided.