Skip to content

Commit

Permalink
fix all import path
Browse files Browse the repository at this point in the history
  • Loading branch information
bung87 committed Aug 6, 2023
1 parent 4ac2002 commit d512689
Show file tree
Hide file tree
Showing 15 changed files with 59 additions and 59 deletions.
2 changes: 1 addition & 1 deletion scorper.nimble
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ license = "Apache License 2.0"
srcDir = "src"
skipDirs = @["tests","examples","experiments","benchmark","artwork"]
installExt = @["nim"]
# namedbin = {"./scorper/http/routermacros":"routermacros" }.toTable()
# namedbin = {"scorper/http/routermacros":"routermacros" }.toTable()
# Dependencies

requires "nim >= 1.3.1"
Expand Down
8 changes: 4 additions & 4 deletions tests/tfile.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import os
import asynctest, strformat

Expand Down
8 changes: 4 additions & 4 deletions tests/tfile_https.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import os
import asynctest, strformat
include ./cert
Expand Down
12 changes: 6 additions & 6 deletions tests/tformparser.nim
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@

import ./scorper/http/streamserver
import ./scorper/http/streamclient
import ./scorper/http/httprequest
import ./scorper/http/httpform
import ./scorper/http/multipartparser
import ./scorper/http/httpcore, chronos, os
import scorper/http/streamserver
import scorper/http/streamclient
import scorper/http/httprequest
import scorper/http/httpform
import scorper/http/multipartparser
import scorper/http/httpcore, chronos, os
import asynctest, strformat

let Sample = """multipart/form-data;boundary="sample_boundary""""
Expand Down
2 changes: 1 addition & 1 deletion tests/thttpcore.nim
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
include ./scorper/http/httpcore
include scorper/http/httpcore

var test = newHttpHeaders()
test["Connection"] = @["Upgrade", "Close"]
Expand Down
6 changes: 3 additions & 3 deletions tests/thttps.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import strutils
include ./scorper/http/streamserver
import ./scorper/http/httprequest
include ./scorper/http/streamclient
include scorper/http/streamserver
import scorper/http/httprequest
include scorper/http/streamclient
import asynctest, strformat
include ./cert

Expand Down
8 changes: 4 additions & 4 deletions tests/tjson.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import json, strutils
import asynctest, strformat

Expand Down
10 changes: 5 additions & 5 deletions tests/tpostcheck.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpform
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpform
import scorper/http/httpcore, chronos
import os, strutils
import asynctest, strformat

Expand Down
8 changes: 4 additions & 4 deletions tests/trange.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import os, strutils
import asynctest, strformat

Expand Down
8 changes: 4 additions & 4 deletions tests/trange_https.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import os, strutils
import asynctest, strformat
include ./cert
Expand Down
10 changes: 5 additions & 5 deletions tests/tresumable.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import ./scorper/http/exts/resumable
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import scorper/http/exts/resumable
import os, parseutils, streams
import stew/results
import asynctest, strformat
Expand Down
10 changes: 5 additions & 5 deletions tests/trouter.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/router
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/router
import scorper/http/httpcore, chronos
import tables
import asynctest, strformat

Expand Down
10 changes: 5 additions & 5 deletions tests/tstatic.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/router
import ./scorper/http/streamclient
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/router
import scorper/http/streamclient
import scorper/http/httpcore, chronos
import os
import asynctest, strformat

Expand Down
6 changes: 3 additions & 3 deletions tests/tstreamserver.nim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

import strutils
include ./scorper/http/streamserver
import ./scorper/http/httprequest
include ./scorper/http/streamclient
include scorper/http/streamserver
import scorper/http/httprequest
include scorper/http/streamclient
import asynctest, strformat

proc request(server: Scorper): Future[AsyncResponse] {.async.} =
Expand Down
10 changes: 5 additions & 5 deletions tests/turlencoded2.nim
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@

import ./scorper/http/streamserver
import ./scorper/http/httprequest
import ./scorper/http/streamclient
import ./scorper/http/httpform
import ./scorper/http/httpcore, chronos
import scorper/http/streamserver
import scorper/http/httprequest
import scorper/http/streamclient
import scorper/http/httpform
import scorper/http/httpcore, chronos
import asynctest, strformat

proc request(server: Scorper): Future[AsyncResponse] {.async.} =
Expand Down

0 comments on commit d512689

Please sign in to comment.