Code

Opened 7 years ago

Closed 7 years ago

#4513 closed (duplicate)

Provide a way to start development server from within in non-blocking mode

Reported by: bugs@… Owned by: adrian
Component: Core (Other) Version: master
Severity: Keywords:
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: UI/UX:

Description

Use-case: It web application development, it's common and good practice to do functional test using browser-driven testing tools like Selenium. Especially Selenium has nice concept of remote control, which can be used to integrate Selenium tests into standard unittest framework.

However, as this tool is starting browser and simulating "clicks" and doing some verifications, it requires server to run. Current testing Client bypass this need by using dispatcher, but this is insufficient.

Required change is to extend django.core.servers.basehttp.run() method to take non_blocking=False argument. When True provided, httpd should not be served_forever(), but started in non-blocking mode (being forked to another thread perhaps?). This will be called by django.test.utils.setup_test_environment(), so server will be available for all tests + it should be then easy for users to integrade selenium into test system.

As this problem cause me real pain, I'm willing to contribute on this patch, I'd just like to hear acceptance decision + preferred way to do this.

Attachments (0)

Change History (1)

comment:1 Changed 7 years ago by Almad <bugs@…>

  • Needs documentation unset
  • Needs tests unset
  • Patch needs improvement unset
  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate to #2867

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.